setWill does not post "online" message to LWT topic on startup
vks007 opened this issue · 1 comments
Hi,
I am using this library and I am not able to get the online message on the LWT topic once the node connects to MQTT broker.
My set up uses ESP8266. The rest of the functionality is all working fine. The broker also posts an "offline" message once my client disconnects.
As a workaround I am manually posting the "online" message in the onMqttConnect() function.
Please look at my code and let me know in case I am missing something here.
sorry I guess because of some character in my code or something it is not getting formatted as code when I paste here so using pastebin. Pl see the code here
sorry just realized that I have to post the online message myself and it doesnt happen automatically. so its intended behavior. closing the issue.