|Re: [paho-dev] [Paho Mqtt C Client]: Automatic Reconnect does't work Some times|
Both the traces show
Debug: Connection lost
which implies that the connection lost callback is being invoked. If you are using automatic reconnect I wouldn't expect to see the connectFailure callback invoked (actually I think there's a bug looking at the code where I need to zero out the connect failure callback pointer once invoked once).
These traces don't tell me much. Taking client library traces by setting MQTT_C_CLIENT_TRACE=ON should give more information.
Also, your settings. A connect timeout of 3 seconds? That seems
unnecessarily very low. In some circumstances, the TCP connect
might take longer - you're at risk of aborting a successful
On 21/07/2017 07:50, vikas sharma wrote:
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Paho Project Lead; Committer on Mosquitto
Back to the top