MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_ublox_ethernet

Dependencies:   C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed

Revision:
148:b09187a0fa77
Parent:
136:ea8f3900bc13
Child:
160:3f373ec7ab3c
diff -r 537bcacd855d -r b09187a0fa77 MQTTTransport.cpp
--- 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();
          }