mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Fri Mar 28 16:50:02 2014 +0000
Parent:
9:28bd23e25409
Child:
11:9ae0fe4517c1
Commit message:
updates

Changed in this revision

MBEDEndpoint.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
  }