Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Android - Paho Mqtt client does not receive messages once network connectivity changes (mobile data disabled and enabled again)

Anyone any luck on this? 

Nagesh,

Keeping KeepAliveInterval to 5 with debug logging did not provide any clue.

I have never used it but can anyone tell me if the issue the issue is reproducible with Paho Android Service interface? If it is not, then I would go through its code to identify how it is implemented and how the issue has been handled in it.


On Sat, Aug 9, 2014 at 1:39 AM, Prashant Kedia <prashantkedia22@xxxxxxxxx> wrote:
Ian, 

Upgrading to latest version did not make any difference.

>> we could remember the subscriptions and remake them in the case of reestablishment of a broken connection.
The connection is not broken in this case as KeepAliveInterval is high (I don't even want it to break). I want to receive the messages without  connection being lost and reestablished again, as it is working with pure java.

Nagesh,
Will run your suggested test case and will provide you with results.



On Sat, Aug 9, 2014 at 12:42 AM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) <nageshblore@xxxxxxxxx> wrote:
As a test case, could you do the following with your pure Java sample, please ?

1. Keep the keepAlive very low, say, 5 seconds.
2. Use the mosquitto broker on your desktop with debug turned on.
3. Do your connect and disconnect. You should see a sequence of CONNECT, CONNACK and other messages. That should provide a hint.

I am trying to establish the behavior of MQTT connect/disconnect and the network layer connect/disconnect.

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



--
Thanks and Regards,
Prashant Kedia



--
Thanks and Regards,

Prashant Kedia
Co-Founder and Developer
Bizlers Technologies Pvt. Ltd.

Back to the top