mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-05 04:01:41 +02:00
improved MQTT #468 set status to "offline" / "online" / "partial"
fix web-serial-console
This commit is contained in:
parent
e5a40673fd
commit
67b9170fcf
7 changed files with 59 additions and 16 deletions
|
@ -165,6 +165,7 @@ void app::tickCalcSunrise(void) {
|
|||
onceAt(std::bind(&app::tickCalcSunrise, this), nxtTrig);
|
||||
if (mConfig->mqtt.broker[0] > 0) {
|
||||
once(std::bind(&PubMqttType::tickerSun, &mMqtt), 1);
|
||||
onceAt(std::bind(&PubMqttType::tickSunrise, &mMqtt), mSunrise);
|
||||
onceAt(std::bind(&PubMqttType::tickSunset, &mMqtt), mSunset);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue