Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MQTTTransport.cpp
- Revision:
- 148:b09187a0fa77
- Parent:
- 136:ea8f3900bc13
- Child:
- 160:3f373ec7ab3c
--- a/MQTTTransport.cpp Wed Mar 19 21:37:52 2014 +0000
+++ b/MQTTTransport.cpp Wed Mar 19 22:09:43 2014 +0000
@@ -358,9 +358,11 @@
this->logger()->log("PING send %d FAILED... (re)connecting...",this->m_ping_counter);
// attempt reconnect
+ this->logger()->log("PING send failed - re-connecting MQTT...");
this->disconnect();
sent = this->connect();
if (sent) this->logger()->log("PING %d: MQTT reconnection successful...",this->m_ping_counter);
+ else this->logger()->log("PING %d: resend failed giving up...",this->m_ping_counter);
}
// return our status
@@ -437,6 +439,7 @@
this->logger()->blinkTransportRxLED();
}
else {
+ this->logger()->log("Attempting reconnection to MQTT in checkAndProcess...");
this->disconnect();
this->connect();
}