Closed heikomat closed 5 years ago
loop_start() also reconnects. loop_forever() blocks the thread so cec wil not refresh anymore.
Check the docs at https://pypi.org/project/paho-mqtt/#network-loop
oh, it does indeed say "This call also handles reconnecting to the broker" for loop_start()
.
That's strange, as i restartet my mqtt broker, and only with loop_forever()
did it work correctly. I must have something else wrong then.
Thanks for the info @michaelarnauts
This change makes the bridge automatically reconnect to the mqtt broker on connection loss