Ideomatic handeling of reconnect #333
Unanswered
EmilSodergren
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i have a mqtt client loop that looks like the one described in the readme, i.e.
This works well until the mqtt server hiccups and the connetction is lost. After the server is back up the connection loop reconnects as it should, but the resubscribe does not happen. What is the ideomatic way of handling this? Should I always set the
clean_session=false
on the client or is there a way to resubscribe from inside the connection loop?Beta Was this translation helpful? Give feedback.
All reactions