monstrenyatko / ArduinoMqtt

MQTT client for Arduino
MIT License
72 stars 12 forks source link

Add `connected` API to `MqttClient::Network` interface #2

Closed monstrenyatko closed 7 years ago

monstrenyatko commented 7 years ago

Need to add the callback method to detect the network disconnection. It should speed up the identification of MQTT connection failure. The keepalive mechanism might be too slow.

The Arduino::Client::connected API could be used to get the network connection status.