|Re: [paho-dev] Paho Mqtt C Client: Automatic reconnect issue when connection is lost.|
The onSuccess callback is only invoked as a result of a
successful connect attempt in response to an MQTTAsync_connect
call.Â It will only be invoked once.
If you want to be notified when a connection is re-established as
a result of an automatic reconnect then you can use the
MQTTAsync_connected callback - use MQTTAsync_setConnected() to
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto