mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 14:56:11 +02:00
fix #416
This commit is contained in:
parent
0305c114cf
commit
c1eed6eef2
2 changed files with 10 additions and 4 deletions
|
@ -42,6 +42,7 @@ void app::setup(uint32_t timeout) {
|
|||
mMqtt.setup(&mConfig->mqtt, mConfig->sys.deviceName, mVersion, mSys, &mUtcTimestamp, &mSunrise, &mSunset);
|
||||
mPayload.addListener(std::bind(&PubMqttType::payloadEventListener, &mMqtt, std::placeholders::_1));
|
||||
addListener(EVERY_SEC, std::bind(&PubMqttType::tickerSecond, &mMqtt));
|
||||
addListener(EVERY_MIN, std::bind(&PubMqttType::tickerMinute, &mMqtt));
|
||||
}
|
||||
#endif
|
||||
setupLed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue