Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By rk125
#13613 Hello,
MQTT example works fine for me on ESP-07 with exception. If I set up longer delays (tried 60s and longer only) - client seems to disconnect from broker, e.g. client.connected() returns false. Keepalive would not be good thing for me cause I would like to run ESP from battery and let it sleep in the middle.
What I did is I connect again with the same connect string as in setup. Works 100% for now (overnight no lost messages). MQTT broker mosquitto on RPI.
No WDT issues. For me WDT seems to be kicking in only if code does abort() - at least I can see wdt reset message on serial.
Reggie