Skip to content

Tag: mqtt

Paho MQTT Python Client: No exceptions thrown, just stops

I try to setup a mqtt client in python3. This is not the first time im doing this, however i came across a rather odd behaviour. When trying to call a function, which contains a bug, from one of the callback functions (on_connect or on_message), python does not throw an exception (at least it is not printed),…

MQTT Python-Client disconnect ungracefully

I wrote basic MQTT python-client. But it disconnect ungracefully without giving any error. When i look event log file i found it’s connected and same time is disconnected ungracefully. Here i attached a snap of event log also. Answer @MikeScotty’s answer is not right. What’s missing is start…