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:
10:748fc7052e61
Parent:
9:ff877db53cfd
Child:
11:59ee476fda24
--- a/MBEDEndpoint.cpp	Wed Feb 26 21:48:57 2014 +0000
+++ b/MBEDEndpoint.cpp	Wed Feb 26 22:27:04 2014 +0000
@@ -34,6 +34,7 @@
   
  // default constructor
  MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,EthernetInterface *ethernet) {
+     this->m_ioc_id = -1;
      bool success = true;
      for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL;
      this->m_error_handler = error_handler;
@@ -57,6 +58,12 @@
      if (success) this->logger()->turnLEDBlue();
  }
  
+ // set the IOC ID
+ void MBEDEndpoint::setIOCID(int ioc_id) { this->m_ioc_id = ioc_id; }
+ 
+ // get the IOC ID
+ int MBEDEndpoint::getIOCID() { return this->m_ioc_id; }
+ 
  // initialize the Lights
  bool MBEDEndpoint::initializeLights() {
      this->logger()->log("Initializing Lights...");