Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] MQTT reconnect logic

Hi All,


I need help from you to understand reconnect logic.


Right now I’m using these components:

>>mosquito 1.2

>> Windows 7

>> Paho mqtt client java 0.4

>> Java 7, Spring 3.2.


Once the perisistence mqtt client gets disconnected (well I unplug my cable), then it throws an exception,


onnection lost (32109) - Read timed out


                at Source)

Caused by: Read timed out


Later when I try to publish ,


com.lnt.ubiqrede.exception.UBIQRedeException: Error while sending Data,

                at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(

                at org.eclipse.paho.client.mqttv3.internal.ClientComms.sendNoWait(

                at org.eclipse.paho.client.mqttv3.MqttAsyncClient.publish(



Basicallt my doubt is if the mqtt client gets disconnected, does it tries to reconnect or we need to do it ourself. 






L&T Technology Services Ltd

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

Back to the top