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
The provided examples do not exit even after calling the disconnect function of the client/gateway. Two reasons:
The mqtt client loop is not stopped in the disconnect function, _client.stop_loop() should be called (although I'm not sure if this is needed, but it should be a good practice)
The __timeout_thread is still running, because it loops forever (while True). This thread must be killed/stopped, otherwise the programs do not end.
Best regards,
Aitor
The text was updated successfully, but these errors were encountered:
I am facing the same issue about the clients not ending the thread. Have you found a definitive solution? Can you provide the modified code for both cases above? I'd really appreciate it :)
Hi again!
The provided examples do not exit even after calling the disconnect function of the client/gateway. Two reasons:
Best regards,
Aitor
The text was updated successfully, but these errors were encountered: