-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT client was disconnected with reason code 7 #72
Comments
I also met once on docker thingsbroad-gateway 3.5.1 |
Hi @AndreSensaway and @Leo-Hassan, thanks for your interest in ThingsBoard Python Client SDK! |
Hello, I've updated to version 1.10.8 and tested the same minimal code that I showed in the first post.
it shows: Here are the logs I get when running the code:
|
I'm using
tb-mqtt-client
version 1.9.9When connecting to a gateway device, I keep getting the following message:
MQTT client was disconnected with reason code 7 (The connection was lost.)
This happens continuously (around 1 to 2 times per second). I can send telemetry/attributes in the brief periods that the connection holds, but it is not sustainable.
Here is the minimal code that reproduces my error:
Is there something wrong with the code or is this a problem on the thingsboard mqtt broker side?
I've looked at the thingsboard logs and cannot find anything that would indicate that it is refusing the connection for some reason.
Any help on this would be appreciated!
When I set the loggin level to Debug, Here are the logs I get:
The text was updated successfully, but these errors were encountered: