You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I start my client like this without a network connection then once the connection is available the client will connect and be happy. The problem is if I call mosquitto_disconnect then reconnect later calling init() again, I don't get a connect callback.
If I start my client like this without a network connection then once the connection is available the client will connect and be happy. The problem is if I call
mosquitto_disconnect
then reconnect later callinginit()
again, I don't get a connect callback.If I start my client like this without a network connection then it doesn't automatically connect when the network becomes available:
So to auto-connect correctly and still get a callback when called a second time, I have to do this:
This works in both scenarios for some reason even though the second
mosquitto_loop_start
returnsMOSQ_ERR_INVAL
. This doesn't makes sense to me because it looks like the secondmosquitto_loop_start
shouldn't do anything except return the error.https://github.com/eclipse/mosquitto/blob/v2.0.14/lib/thread_mosq.c#L42
Mosquitto Version: 2.0.14
OS: Linux Ubuntu 20.04
The text was updated successfully, but these errors were encountered: