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: PhilipsLight.cpp
- Revision:
- 142:b7a75144b0f1
- Parent:
- 135:7f3f963cd159
- Child:
- 192:54b758a8eaaa
--- a/PhilipsLight.cpp Mon Mar 31 20:32:24 2014 +0000 +++ b/PhilipsLight.cpp Mon Mar 31 20:37:35 2014 +0000 @@ -22,7 +22,7 @@ // default constructor PhilipsLight::PhilipsLight(int id,void *transport,ErrorHandler *error_handler) : BaseClass(error_handler,NULL) { this->m_id = id; - this->m_state = PL_DEFAULT_STATE; + sscanf(PL_DEFAULT_STATE,"%d",&this->m_state); this->m_dim = PL_DEFAULT_DIM; memset(this->m_url,0,PL_URL_BUFFER_LEN+1); memset(this->m_payload,0,PL_PAYLOAD_BUFFER_LEN+1);