Paho Java client is NOT receiving MQTT events. [message #1819036] |
Mon, 06 January 2020 04:28  |
Eclipse User |
|
|
|
Hello All,
Issue: I am facing an intermittent issue where the MQTT subscriber failed to receive events from the broker even though the client is connected to the broker.
Context:
I have a service subscribed to the broker using MQTT paho java client 1.2.0 with durable subscription, keep-alive time as 30 seconds and turned off automatic reconnect. I have registered a callback for connection complete, connection lost and message processing.
Handling reconnection
Whenever callback is received for connection lost, my subscriber program marks the connection as failed and reconnects using reconnect API after 2 minutes.
Current Problem:
Sometimes my subscriber failed to receive events from broker even though client is connected to broker. I am verifying the client connection status using API mqttClient.isConnected().
|
|
|
|
Powered by
FUDForum. Page generated in 0.05422 seconds