Posted: Wed Apr 06, 2016 3:41 am Post subject: mqtt android client - republish message on disconnect
Novice
Joined: 02 Jan 2013 Posts: 11
We have to publish messages from MQTT clients (Android) with unstable connection. What is a right way to resend a message from a client that lost its connection to the server and can't connect at the moment?
Thank you mqjeff
Actually the question is how I implement this functionality using Paho Java Client?
Don't use cleanSession.
That's it.
I mean set cleanSession to false, unless your paho client knows that it needs to discard any messages that haven't been delivered in either direction (after some kind of device reset for example). _________________ chmod -R ugo-wx /
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum