Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
135:7f3f963cd159
Parent:
88:6a6d0b8751cb
Child:
156:6fb77af2c6a5
--- a/MBEDToIOCResourceMap.cpp	Fri Mar 28 16:24:12 2014 +0000
+++ b/MBEDToIOCResourceMap.cpp	Fri Mar 28 17:49:10 2014 +0000
@@ -19,8 +19,7 @@
  #include "MBEDToIOCResourceMap.h"
  
  // default constructor
- MBEDToIOCResourceMap::MBEDToIOCResourceMap(ErrorHandler *error_handler) {
-     this->m_error_handler = error_handler;
+ MBEDToIOCResourceMap::MBEDToIOCResourceMap(ErrorHandler *error_handler) : BaseClass(error_handler,NULL) {
      for(int i=0;i<NUM_MAPPINGS;++i) this->m_map[i] = NULL;
      this->m_count = 0;
      this->createMap();
@@ -31,10 +30,7 @@
      for(int i=0;i<this->m_count;++i)
         if (this->m_map[i] != NULL) delete this->m_map[i];
  }
- 
- // get our error handler
- ErrorHandler *MBEDToIOCResourceMap::logger() { return this->m_error_handler; }
- 
+  
  // get the IOC equivalent resource name from the Endpoint resource name
  char *MBEDToIOCResourceMap::endpointNameToIOCName(char *mbed_name) {
      bool found = false;