TinkerWorks / HomeSensorHub

GNU General Public License v3.0
3 stars 2 forks source link

Investigate the connection logic for the mqtt.py module #62

Closed BabyCakes13 closed 1 year ago

BabyCakes13 commented 1 year ago

The connect function from mqtt.py is faulty. It always logs successful connection to any broker:

Image

paho-mqtt does find that the connection is not successful, but the connect_async and loop_start methods do not throw any errors.

BabyCakes13 commented 1 year ago

The problem was only the log message. The message with the successful statement was printed BEFORE the connection loop actually started.

I removed the faulty message and now everything is clearer.