mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Fri Sep 12 20:44:42 2014 +0000
Parent:
51:15c81f725ba2
Child:
53:74816856d11b
Commit message:
updated with thread-safe wait()

Changed in this revision

MBEDEndpoint.cpp Show annotated file Show diff for this revision Revisions of this file
MQTTTransport.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MBEDEndpoint.cpp	Thu Aug 28 20:56:49 2014 +0000
+++ b/MBEDEndpoint.cpp	Fri Sep 12 20:44:42 2014 +0000
@@ -470,7 +470,7 @@
      while(true) {
          // sleep a bit
          //this->logger()->log("Sleeping for a bit...");
-         wait_ms(MAIN_LOOP_SLEEP);
+         Thread::wait(MAIN_LOOP_SLEEP);
          
          // check for events 
          //this->logger()->log("Processing Events...");
--- a/MQTTTransport.cpp	Thu Aug 28 20:56:49 2014 +0000
+++ b/MQTTTransport.cpp	Fri Sep 12 20:44:42 2014 +0000
@@ -382,7 +382,7 @@
          this->logger()->blinkTransportTxLED();
          
          // wait for 1 second
-         wait_ms(1000);
+         Thread::wait(1000);
      }
      else {
          // fail silently now...