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:
- 16:fda7dbb8b47a
- Parent:
- 9:90fadae5489a
- Child:
- 20:f2dbbd852e08
diff -r 386dccd0000a -r fda7dbb8b47a Light.cpp --- a/Light.cpp Tue Feb 25 20:04:59 2014 +0000 +++ b/Light.cpp Tue Feb 25 22:11:01 2014 +0000 @@ -32,11 +32,12 @@ this->m_transports[i] = transports[i]; this->m_transports[i]->setEndpoint(this); } + memset(this->m_name,0,LIGHT_NAME_LEN+1); sprintf(this->m_name,LIGHT_NAME,instance); this->resources()->createResources(this->getName()); // DEBUG - this->logger()->log("Light name:%s\n", this->getName()); + this->logger()->log("Light name: %s", this->getName()); } // destructor