You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MQTT should report when it connects to the broker #65
I'd like to turn other things on when the ESP with WLED is turned on and connects to the broker. Espurna seems to ocassionally report the status of the system and also when first connected. Would you consider doing something similar?
Hi, by "report" do you mean that the ESP should publish to a certain topic that it is connected now?
That would actually make a lot of sense. If it is enough for you if WLED publishes the current state to the /device/g and /device/c topics and your other things subscribe to those topics, you can just add publishMQTT() below line 83 (mqtt->subscribe(subuf);) in wled17_mqtt.ino and it will not only update when it changes color/brightness, but also when it initially (re)connects to the broker. I will also add this behavior in the upcoming 0.8.1 version.
Activity
Aircoookie commentedon Oct 30, 2018
Hi, by "report" do you mean that the ESP should publish to a certain topic that it is connected now?
That would actually make a lot of sense. If it is enough for you if WLED publishes the current state to the
/device/gand/device/ctopics and your other things subscribe to those topics, you can just addpublishMQTT()below line 83 (mqtt->subscribe(subuf);) in wled17_mqtt.ino and it will not only update when it changes color/brightness, but also when it initially (re)connects to the broker. I will also add this behavior in the upcoming 0.8.1 version.kendersec commentedon Oct 30, 2018
Yes, I think publishing current state to /device/g and /device/c on boot would work/make sense. Thanks!
Aircoookie commentedon Nov 18, 2018
This feature should work as intended now. If there are any further issues, feel free to reopen!
Merge pull request #65 from Aircoookie/master
Merge pull request wled#65 from MoonModules/eth-builds
Merge pull request wled#65 from Aircoookie/master