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:
- 10:d96c57c19611
- Parent:
- 7:8a4a61202b36
- Child:
- 11:9ae0fe4517c1
diff -r 28bd23e25409 -r d96c57c19611 MBEDEndpoint.cpp --- a/MBEDEndpoint.cpp Fri Mar 28 16:48:16 2014 +0000 +++ b/MBEDEndpoint.cpp Fri Mar 28 16:50:02 2014 +0000 @@ -129,8 +129,8 @@ this->logger()->log("Initializing Lights..."); for(int i=0;i<NUM_PERSONALITY_INSTANCES;++i) { this->m_personalities[i] = new MBEDLight(this->logger(),this->m_transports,i+index,this); - this->m_personalities[i]->setDimmerAction(new EmulatedLightDimmerAction(this->logger(),this->m_personalities[i])); - this->m_personalities[i]->setSwitchAction(new EmulatedLightSwitchAction(this->logger(),this->m_personalities[i])); + ((Light *)this->m_personalities[i])->setDimmerAction(new EmulatedLightDimmerAction(this->logger(),(Light *)this->m_personalities[i])); + ((Light *)this->m_personalities[i])->setSwitchAction(new EmulatedLightSwitchAction(this->logger(),(Light *)this->m_personalities[i])); } return true; }