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:
160:24337c83dd1d
Parent:
158:0cecb265bb18
Child:
161:a85cb6cba5ed
--- a/CommonDefinitions.h	Mon Jun 30 22:17:32 2014 +0000
+++ b/CommonDefinitions.h	Tue Jul 01 17:12:18 2014 +0000
@@ -93,12 +93,17 @@
 #define PL_URL_TEMPLATE             "http://%s/api/newdeveloper/lights/%d/state"  
 #define PL_ON_COMMAND_TEMPLATE      "{ \"on\":%s, \"sat\":211, \"bri\":%d, \"hue\":13122 } "
 
+#ifndef CELLULAR_NETWORK
 // Error Handler - use mutexes?
 #define EH_USE_MUTEXES              true                            // true - yes, undef - no
 
 // Network - use mutexes?
 #define NETWORK_MUTEX               true                            // true - yes, undef - no
 
+// Has Threads?
+#define ENABLE_THREADS              true    
+#endif
+
 // Platform specific customizations
 #ifdef _ENDPOINT_UBLOX_PLATFORM
     #define PLATFORM_STRING         "U-Blox MBED"                   // platform string