Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Repeated messages

To try to narrow this down, have you also tried the same thing using e.g. mosquitto_sub to the same topic on the same broker, at the same time as you've been running your Android client? Does that also continue to receive the messages after a reconnect?

On Thu, Oct 30, 2014 at 6:47 AM, Romu Hu <huruomu@xxxxxxxxx> wrote:
Hi,

I'm facing a weird problem: Sending 5 messages ('1', '2', '3', '4', '5') using android phone (PAHO mqtt library) to a topic (using mosquitto as broker), using qos=1, not retained, the subscriber (another android phone, also using PAHO mqtt library) of the topic receives these messages, then shutdown the network connection of the subscriber phone and turn it on again after about 30 seconds, the subscriber immediately receives '3', '4' and '5' again, then shutdown and restart the network again, the subscriber receives '4' and '5' again, shutdown and restart the network again, the subscriber receives '5'.

The receiving of the repeated messages is not 100% reproducible. Sometimes the receiving of the repeated messages happens a couple of minutes after network reconnection.  The publisher and receiver always connects to the broker with clean session as false.

Why is this happening?


Thanks
Romu
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



--
Andy Piper | Kingston upon Thames, London (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

Back to the top