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:
90:0fed8d3e0b81
Parent:
88:6a6d0b8751cb
Child:
93:ac4a8d3c2a4f
diff -r 0af616fdea3b -r 0fed8d3e0b81 CommonDefinitions.h
--- a/CommonDefinitions.h	Wed Mar 12 23:55:06 2014 +0000
+++ b/CommonDefinitions.h	Thu Mar 13 00:07:59 2014 +0000
@@ -48,12 +48,15 @@
 // LED Blink Time
 #define BLINK_TIME                  100            // LED blink times
 
+// Default Light State
+#define LIGHT_DEFAULT_STATE         1              // ON by default
+
 // Philips Light Support
 #define PL_LIGHT_ID_DOUG            1                               // Dougs Light
 #define PL_LIGHT_ID_BILL            2                               // Bills Light
 #define PL_LIGHT_ID_KERRY           3                               // Kerrys Light
 #define PL_GW_ADDRESS               "192.168.1.178"                 // Philips Gateway in IOT lab (Austin)
-#define PL_DEFAULT_STATE            1                               // on
+#define PL_DEFAULT_STATE            LIGHT_DEFAULT_STATE             // on
 #define PL_DEFAULT_DIM              11                              // dim value
 #define PL_URL_BUFFER_LEN           128
 #define PL_PAYLOAD_BUFFER_LEN       128