Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: Light.cpp
- Revision:
- 20:f2dbbd852e08
- Parent:
- 16:fda7dbb8b47a
- Child:
- 21:cfdaee0a2b50
--- a/Light.cpp Wed Feb 26 07:22:26 2014 +0000 +++ b/Light.cpp Wed Feb 26 18:59:01 2014 +0000 @@ -28,10 +28,7 @@ this->m_error_handler = error_handler; this->m_resources = ((MBEDEndpoint *)endpoint)->initResourceFactory(); this->m_endpoint = endpoint; - for(int i=0;i<NUM_TRANSPORTS;++i) { - this->m_transports[i] = transports[i]; - this->m_transports[i]->setEndpoint(this); - } + for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = transports[i]; memset(this->m_name,0,LIGHT_NAME_LEN+1); sprintf(this->m_name,LIGHT_NAME,instance); this->resources()->createResources(this->getName());