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
set.
On 05/07/2017 12:47, vikas sharma wrote:
Hi Ian
Thanks for your help.I am getting connect failed callback
prints all the time for offline reconnection.But connect
success callback prints are still not coming.
Just let me know if we can expect connect succes callback prints
if it is getting connected successfully after conn lost
situation with above mentioned settings.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto