Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] How to reconnect MqttAndroidClient in poor network conditions

Sounds like you want a larger timeout value, but might be worth trying to ping the server in your own android code first to make sure that the server actually available before you try to connect. Also, I recommend making sure that it works on WiFi before moving to cellular to make sure that nothing else is causing problems.
 
Kind regards,
 
James Sutton
Software Engineer - IoT Foundation - MQTT Open Source Projects
Technical Trojan - Wimbledon Project

Phone: 01962 815438 | Extension: x372454
E-mail: 
Personal Website: www.jsutton.co.uk
Find me on:      
IBM

Hursley Park
HursleySO212JN
United Kingdom
 
IBM United Kingdom Limited Registered in England and Wales with number 741598 Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU
 
 
----- Original message -----
From: "zhangkai.gis"<zhangkai.gis@xxxxxxx>
Sent by: paho-dev-bounces@xxxxxxxxxxx
To: "General development discussions for paho project"<paho-dev@xxxxxxxxxxx>
Cc:
Subject: Re: [paho-dev] How to reconnect MqttAndroidClient in poor network conditions
Date: Fri, Feb 26, 2016 5:07 AM
 
Hello James,
Ok, I will use the simple code to run in my app,but when in a poor network condition. It is hard to connect to the broker.Should I call connect in OnFailer function?Or set a bigger timeout value?
 
2016-02-26
zhangkai.gis
 
_______________________________________________
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
 
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top