thingsboard-python-client-sdk
thingsboard-python-client-sdk copied to clipboard
Examples do not end after disconnect function is called
Hi again!
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
Hi @bodiroga,
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 :)
nvm, I found your pull request. Hopefully it will get accepted soon.
same problem here!
Same problem.
win10 64bit ,conda python 3.7.7
No response from KeyboardInterrupt exception.