Skip to main content



      Home
Home » Eclipse Projects » Paho » MQTT auto reconnect(MQTT auto reconnect failure if server no available at first attempt)
MQTT auto reconnect [message #1821395] Wed, 12 February 2020 08:37
Eclipse UserFriend
Trying to create Android MQTT client application by using Paho library. Got issue regarding auto reconnect. I set option below to ensure reconnect.

MqttConnectOptions.setAutomaticReconnect(boolean)


Evrything works fine when MQTT server is online at first connect. In this case when connection to server lost MqttAndroidClient does reconnect. But in case MQTT server is down at first connect attempt MqttAndroidClient does not reconnect. Why? How to solve it?
Previous Topic:QOS2 messages not being sent in order when sending queued messages after automatic re-connection
Next Topic:Managing reconnections to MQTT server
Goto Forum:
  


Current Time: Sun Jun 15 12:22:13 EDT 2025

Powered by FUDForum. Page generated in 0.03865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top