MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_nxp

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

Revision:
30:5c670ec5d203
Parent:
25:8e960728d50a
Child:
32:a7b3c285446c
--- a/MBEDEndpoint.cpp	Fri Feb 28 05:20:00 2014 +0000
+++ b/MBEDEndpoint.cpp	Fri Feb 28 18:08:11 2014 +0000
@@ -37,13 +37,13 @@
      bool success = true;
      for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL;
      this->m_error_handler = error_handler;
-     this->m_map = new MBEDToIOCResourceMap(error_handler);
-     this->logger()->log(ENDPOINT_VERSION_ANNOUNCE);
      if (success) this->logger()->turnLEDBlue();
+     if (success)this->logger()->log(ENDPOINT_VERSION_ANNOUNCE);
      if (success) success = this->initializeEthernet(ethernet);
      if (success) this->logger()->turnLEDYellow();
+     if (success)this->m_map = new MBEDToIOCResourceMap(error_handler);     
+     if (success) success = this->initializeTransports();
      if (success) success = this->initializeLights();
-     if (success) success = this->initializeTransports();
      if (success) this->logger()->turnLEDGreen();
      if (!success) closedown(2);
  }