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
Hi, i make mqtt autoconnect true and it works flawless, but if the mqtt broker is down all the ui remain freezed until timeout (put to 30sec). Is there a way to avoid this?
thanks for your great work
The text was updated successfully, but these errors were encountered:
Hi, you can set the timeoutOnConnection field in M2MqttUnityClient to a smaller value, otherwise a best control over the connection should be implemented (in one of my projects I used a small timeout with a defined number of iterated trials, using a list of stored broker addresses and trying to connect to each of them until success).
I understand that this is more a workaround than a solution, sorry, maybe you can find a better support on M2MQTT site asking about MqttClient.
Right. That's the solution (maybe also connecting in a separate thread and waiting for the thread completion in the coroutine). Anyway attention must be paid working with threads (mostly in Unity), exceptions should be handled, etc. I'm not a skilled multi-threading programmer, a pull request would be welcome here...
Hi, i make mqtt autoconnect true and it works flawless, but if the mqtt broker is down all the ui remain freezed until timeout (put to 30sec). Is there a way to avoid this?
thanks for your great work
The text was updated successfully, but these errors were encountered: