-
Notifications
You must be signed in to change notification settings - Fork 255
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
MQTT_EVENT_DISCONNECTED does not work (IDFGH-8265) #50
Comments
Hi everyone, I have the same problem with the latest version. |
I just tried here and I've got the notification "MQTT_EVENT_DISCONNECTED" when my broker went down. Is that what you're referring to?
Snippet of my code:
And the reconnection after 10s works too:
The only thing that I noticed is that even when the client is disconnected, after a fail attempt, it will rise MQTT_EVENT_DISCONNECTED again. And when my broker was started again, my MQTT client automatically connected to it:
|
Hi @casmeiron I am using the ethernet interface, when I disconnect the interface, the mqtt client does not launch the MQTT_EVENT_DISCONNECTED event, but in the previous version after disconnecting the interface the event was launched after the 10 second timeout. Everything else is correct. thanks for your answer. |
Hi all, |
@bengiexd just tested on ethernet and
I'm taking the liberty to close the issue, please reopen if needed. |
maybe tihs problem only use ethetnet interface |
the "MQTT_EVENT_DISCONNECTED" event does not work, after updating to the current version of the esp-idf and the espmqtt. apparently the 10-second timeout does not work.
The text was updated successfully, but these errors were encountered: