|[paho-dev] Battery Issue|
Can you suggest us to optimise battery usage for app
-- Thanks, Regards., Gangadhar @ Dhari OM Technologies "Catch Your Dreams" 7th Floor, Left wing, Tower A, Ananth Info Park, Plot Number 39, Hi Tech City Phase II, Madhapur,Hyderabad Telangana-500081 Website : www.omtechnologies.com Desk Phone :+91-40-66070000 Ext No: 7003
Unless stated otherwise above:Hi,What type of MQTT Broker are you using?
Kind regards,James Sutton
Software Engineer - IoT Foundation - MQTT Open Source Projects
Ops Team - Wimbledon Project
United KingdomIBM 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: Deepak Kumhar <deepak.kumhar@xxxxxxxxxxxxx>
Sent by: paho-dev-bounces@xxxxxxxxxxx
Cc: Karthik Jayanthi <karthik.jayanthi@delhivery.
Subject: [paho-dev] Paho Mqtt Client Issue
Date: Wed, Jun 14, 2017 11:59 AM
We are trying to publish message with Qos 1, messages are being publish successfully but just after each publish client is getting connection lost callback (disconnecting) which was not there in case of when we were using Qos 0.
If you could guide us if anything more configuration require while dealing with Qos 1 would be helpful.
Below is the common configuration for both case.MqttConnectOptions options = new MqttConnectOptions();
00);String tmpDir = System.getProperty("java.io.tm pdir");
MqttDefaultFilePersistence dataStore = new MqttDefaultFilePersistence(tmp
Dir);MqttClient client = new MqttClient(url,client_id,dataS tore);client.setTimeToWait(150 00);client.connect(options);
MqttMessage message = new MqttMessage(ourPayload);messag
e.setQos(1); //0 and 1 /* working fine in case of 0*/client.publish(ourtopic,mes sage);Delhivery HQAssociate Tech ( Mobile Team )ThanksDeepak Kumhar
("Eat code before they debug it ... Learn And implement")
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
paho-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
Back to the top