MQTT LWT disconnection
Moderators: grovkillen, Stuntteam, TD-er
MQTT LWT disconnection
In my opinion, the newer firmware-versions disconnect from MQTT-broker before they go to deep-sleep. So the broker give no 'Connection Lost' message. Can I disable this disconnect-message befor sleep for some clients, to get the old behavior?
Last edited by Micha_he on 27 Sep 2020, 15:38, edited 1 time in total.
Re: MQTT LWT disconnection
Hmm that's one feature I didn't think of.
I guess it makes sense to have it included.
Only thing I can't predict is if all data in the buffers of the MQTT client will be flushed when going to sleep.
That's one reason why I made sure to disconnect before sleeping.
Another approach can be to send the LWT ourself.
I guess it makes sense to have it included.
Only thing I can't predict is if all data in the buffers of the MQTT client will be flushed when going to sleep.
That's one reason why I made sure to disconnect before sleeping.
Another approach can be to send the LWT ourself.
Re: MQTT LWT disconnection
I'll test your suggestion to send the 'Connection Lost'-message via rule before goto sleep. But only in a few days, after my bike tour. The problem exists only at three devices, that goto deepsleep.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 124 guests