MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_ublox_cellular

Dependencies:   C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed

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();
          }