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:
11:9ae0fe4517c1
Parent:
7:8a4a61202b36
Child:
36:23a1b2dde4d9
--- a/IOCEndpoint.cpp	Fri Mar 28 16:50:02 2014 +0000
+++ b/IOCEndpoint.cpp	Fri Mar 28 17:49:19 2014 +0000
@@ -23,9 +23,7 @@
  #include "MBEDEndpoint.h"
   
  // default constructor
- IOCEndpoint::IOCEndpoint(ErrorHandler *error_handler,void *endpoint) {
-     this->m_error_handler = error_handler;
-     this->m_endpoint = endpoint;
+ IOCEndpoint::IOCEndpoint(ErrorHandler *error_handler,void *endpoint) : BaseClass(error_handler,endpoint) {
  }
  
  // default destructor
@@ -37,7 +35,7 @@
      char tmp[TEMP_BUFFER_LEN+1];
      
      // MBED Endpoint
-     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->m_endpoint;
+     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->getEndpoint();
       
      // construct the payload for Load/Updates
      ResourceFactory *factory = light->getResourceFactory();
@@ -140,7 +138,4 @@
              this->logger()->log("JSON: %s",json);
         }
      }
- }
- 
- // get our error handler
- ErrorHandler *IOCEndpoint::logger() { return this->m_error_handler; }
\ No newline at end of file
+ }
\ No newline at end of file