MSR/MQTT - detecting broker offline status
- 
I'm running latest-22080-ae7212f under Docker on a Raspberry Pi 4. MQTT is running in a docker on the same Pi. I have a rule that should notify me if my MQTT broker is offline and make an http call to Node-Red to attempt to restart the MQTT container. If MQTT is offline and I restart Reactor, I can see in the logs that it tries to connect to MQTT for a few seconds before it appears to time out. When Reactor finishes its restart I get the notification. However I just tested it by taking the MQTT broker down while Reactor was already up and running, and after about 5 minutes it hadn't detected the MQTT system status as down. How long should it take for Reactor to notice that the MQTT system is down outside of a Reactor restart? Or will it not detect the broker offline except at the initial connection attempt? 
- 
Yeah, the underlying mqtt package has an odd rhythm to its events that I can do a better job handling, I think. I just put up a new version of MQTTController. Give that one a try. 
- 
 T toggledbits locked this topic on T toggledbits locked this topic on
 













