-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get MQTT status #30
Comments
There is an mqtt Disconnected Callback that will tell you when the TCP connection dies. The Wifi status callback will tell you about the wifi association. There really isn't that much more info available... |
Hi! Disconnected callback is not called after an esp-link reset too. It works rarely. Best regards. |
After an esp-link reset you get a reset callback... See https://github.com/jeelabs/el-client/blob/master/ELClient/ELClient.h#L119-L121 |
Hi! Thanks for your answer! My solution was call this functions always before try publish something. All callbacks are not working fine to me after a reset. Best regards. |
Hi! A function to be used like this could be very interesting.
Best regards. |
Hi @tve !
Sorry by bother you again.
I would like to know if there any function to get MQTT status before try publish a message.
I'm using mqtt.connectedCb callback but it is not enough.
After an esp-link reset MQTT status is not updated I'm trying to solve this problem.
Best regards.
The text was updated successfully, but these errors were encountered: