mqtt

Paho(MQTT) client can't connect

Paho(MQTT) client can't connect Question: I’m using this python script to implement a basic Paho(MQTT) subscriber but under certain circumstances it doesn’t invoke on_connect. I tried the following, all with exactly the same code: Running in a Raspbery pi, broker on desktop Pc (Ubuntu). Works. Running in a Pc(Ubuntu), broker on the same Pc. Doesn’t …

Total answers: 1

MQTT – Is there a way to check if the client is still connected

MQTT – Is there a way to check if the client is still connected Question: Is there a way to check if the client is still connected to the MQTT broker? Something like if client.isConnected(): # for example # if True then do stuff Edit: There was instance where my Raspberry Pi stopped receiving from …

Total answers: 5