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:
37:1588ba3af6d1
Child:
192:54b758a8eaaa
diff -r 58e7537a8c5f -r 7f3f963cd159 Transport.cpp
--- a/Transport.cpp	Fri Mar 28 16:24:12 2014 +0000
+++ b/Transport.cpp	Fri Mar 28 17:49:10 2014 +0000
@@ -19,9 +19,7 @@
  #include "Transport.h"
  
  // default constructor
- Transport::Transport(ErrorHandler *error_handler,void *endpoint) {
-     this->m_endpoint = endpoint;
-     this->m_error_handler = error_handler;
+ Transport::Transport(ErrorHandler *error_handler,void *endpoint) : BaseClass(error_handler,endpoint) {
      this->m_connected = false;
  }
  
@@ -34,13 +32,7 @@
      // default is no action
      ;
  }
- 
- // get the error handler
- ErrorHandler *Transport::logger() { return this->m_error_handler; }
   
- // get the endpoint
- void *Transport::getEndpoint() { return this->m_endpoint; }
- 
  // load the endpoint (base class does nothing)
  bool Transport::loadEndpoint(char *data,int data_length,char *result,int result_length) { return false; }