Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Fwd: HELP: Android Client Not Recieving Messages sometimes even though default PING are Success

Hi,

Have you coded any logic to re-subscribe after re-connect? It seems that you re-connect but you do not re-subscribe to desired topics and therefore don't receive messages.

Pehaps this is the problem.

Regards.

El 26/02/2015 08:59, "dishant ghai" <dishant.ghai@xxxxxxxxx> escribió:

Hi,

I am using mqtt paho 3-1.0.1 for my Android App and a mosquito broker.

I am able to Successfully Connect/Publish / Subscribe from my AndroidClient with Qos 1 and cleanSession=false

I have also implemented for Network Change Events and reconnect with broker , I get undelivered messages on reconnect. This works fine most of the times.

However, sometimes the client stops receiving messages which are being published to the broker by other clients and even the same client .Strangely, the default AlarmPingSender  keeps getting Success on Keepalive interval. No subsequent messages are received.  

Also the client is able to use the same connection to PUBLISH at this time and the publishes are received by the broker overtime but no messages are received by MqttCallBackHandler not even the immediately published message by the same client.

Kindly help, as I am stuck in my App Development.

Regards

Dishant Ghai 


_______________________________________________
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

Back to the top