mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
20:ee03f10c074e
Parent:
7:8a4a61202b36
Child:
21:54e3ad1c5c2e
--- a/MQTTTransport.cpp	Tue Apr 01 03:23:25 2014 +0000
+++ b/MQTTTransport.cpp	Tue Apr 01 20:06:30 2014 +0000
@@ -360,15 +360,18 @@
          wait_ms(1000);
      }
      else {
+         // fail silently now...
+         ; 
+         
          // send failed! - reconnect
-         this->logger()->log("PING send %d FAILED... (re)connecting...",this->m_ping_counter);
+         //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);
+         //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