256dpi / arduino-mqtt

MQTT library for Arduino
MIT License
1.02k stars 236 forks source link

Check state of connection with MQTT server ? #215

Closed mars000 closed 4 years ago

mars000 commented 4 years ago

Hi

Is there any API call that allows me to check if I'm connected to the MQTT server ?

shanejohnpaul commented 4 years ago

client.connected() will check if you are connected to the MQTT server.