You are reading a single comment by @Ollie and its replies. Click here to read the full conversation.
  • @Scargill. Hello there! How are you approaching it? Generally, I put a call to connect in the disconnect event handler. Which module are you using? Myself and others have had good success with this cut down module (https://github.com/olliephillips/tinyMQT­T).

    So something like this:

    mqtt.on("disconnected", function(){
    	console.log("disconnected");
    	mqtt.connect();
    });
    

    At the time of the espruino to ESP8266 port, there wasn't the room for the full MQTT module, though we now have 1700 jsvars I think some have squeezed it in, but can't save much application code.

About

Avatar for Ollie @Ollie started