Using the ESP8266 I've managed a connection - no problem - and an MQTT (https://www.espruino.com/MQTT) connect - with subscribe. All works swimmingly well.
But, if you disconnect and reconnect the router, you've lost your MQTT connection and subscribes - although the WIFI does seem to reconnect automatically.
Has anyone already written something to check for broken MQTT connect - and reconnect automatically? (without which of course it isn't a lot of use :-) )
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Using the ESP8266 I've managed a connection - no problem - and an MQTT (https://www.espruino.com/MQTT) connect - with subscribe. All works swimmingly well.
But, if you disconnect and reconnect the router, you've lost your MQTT connection and subscribes - although the WIFI does seem to reconnect automatically.
Has anyone already written something to check for broken MQTT connect - and reconnect automatically? (without which of course it isn't a lot of use :-) )