Deric Dominic
Deric Dominic

Reputation: 57

MQTT Subscribe does not receive messages after few hours

I am using Paho MQTT (java) to subscribe (QoS 2) to VerneMQ broker. I have a device which constantly (every 2 seconds) publishes data to broker. Everything works fine until after 3 - 4 hours, my MQTT Subscriber program does not receive anything, but it is still connected and is running (I will name this condition as sleep).

However, when there is another MQTT Subscriber subscribing to the same topic, the sleeping MQTT Subscriber program start to receives message again. If I have at least 2 subscribers subscribing on every topics I have, it works fine. Any solutions on this situation?

Upvotes: 0

Views: 1014

Answers (1)

Andre
Andre

Reputation: 421

Are you using VerneMQ 0.12.4? There was a known issue regarding UNSUBSCRIBE in previous versions.

If you're using 0.12.4 please get in touch with us!

Cheers,

Andre from VerneMQ

PS: I'll update the answer as soon as we've more insights about the issue

Upvotes: 1

Related Questions