Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
92:330746c526b7
Parent:
91:8732d54328ae
Child:
101:8747b6612e32
--- a/Light.h	Thu Mar 13 17:25:18 2014 +0000
+++ b/Light.h	Thu Mar 13 17:36:08 2014 +0000
@@ -43,9 +43,11 @@
         PhilipsLight      *m_pl;
         
         Thread            *m_blinking_thread;
-        int                m_current_state;
         int                m_last_state;
         bool               m_is_blinking;
+        
+    protected:
+        int                m_current_state;
             
     public:
         Light(ErrorHandler *error_handler,Transport *transports[NUM_TRANSPORTS],int instance,void *endpoint);
@@ -71,6 +73,8 @@
         
         void blinkLight();
         
+        void initLight();
+        
     protected:
         void *getDimmerAction();
         void *getSwitchAction();