mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MBEDEndpoint.cpp
- Revision:
- 56:789a1a8c5ebe
- Parent:
- 53:74816856d11b
diff -r 7992e9582e2e -r 789a1a8c5ebe MBEDEndpoint.cpp --- a/MBEDEndpoint.cpp Fri Sep 19 18:31:14 2014 +0000 +++ b/MBEDEndpoint.cpp Fri Sep 26 05:16:26 2014 +0000 @@ -42,7 +42,7 @@ extern void closedown(int code); // default constructor - MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transport,void *status_reporter,void *extra) : BaseClass(error_handler,NULL) { + MBEDEndpoint::MBEDEndpoint(Logger *logger,void *transport,void *status_reporter,void *extra) : BaseClass(logger,NULL) { bool success = true; this->m_instance_id = 0; this->m_preferences = NULL; @@ -51,7 +51,7 @@ memset(this->m_gw_address,0,PREFERENCE_VALUE_LEN+1); for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL; this->logger()->setEndpoint((void *)this); - this->setEndpoint(new IOCEndpoint(error_handler,(void *)this)); + this->setEndpoint(new IOCEndpoint(logger,(void *)this)); if (success) this->initPreferences(); if (success) this->initEndpointName(); if (success) this->logger()->turnLEDBlue(); @@ -76,7 +76,7 @@ #endif if (success) this->logger()->turnLEDYellow(); this->logger()->log("initializing resource map..."); - if (success)this->m_map = new MBEDToIOCResourceMap(error_handler); + if (success)this->m_map = new MBEDToIOCResourceMap(logger); this->logger()->log("initializing transports..."); if (success) success = this->initializeTransports(); this->logger()->log("initializing personalities...");