beebotte / bbt_arduino_examples

Arduino examples to connect and work with Beebotte.
MIT License
5 stars 1 forks source link

Avoid MQTT disconnect with long 'delay' #2

Closed bachwehbi closed 7 years ago

bachwehbi commented 7 years ago

using long delays causes the Arduino to miss MQTT ping keepalive messages and causes disconnects. Prevent long delays by looping more frequently and controlling how often to read and send data over MQTT.