MBED MQTT Lighting Endpoint for NXP Ublox (cellular enabled)

Dependencies:   C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed

Revision:
190:bdf70b7aa906
Parent:
188:a853e563f876
Child:
196:498c760e453f
--- a/Definitions.h	Fri Mar 28 04:22:45 2014 +0000
+++ b/Definitions.h	Fri Mar 28 17:19:22 2014 +0000
@@ -27,6 +27,10 @@
 //#define   _ENDPOINT_FREESCALE_PLATFORM  true                // uncomment for the Freescale Freedom MBED platform
 //#define   _ENDPOINT_NXP_PLATFORM        true                // uncomment for the NXP MBED platform
 
+// what kind of personality we are...
+#define LIGHT_PERSONALITY               true                        // the endpoint will be a (set of) lights
+//#define COPCAR_PERSONALITY              true                        // the endpoint will emulate a cop car
+
 // include common definitions
 #include "CommonDefinitions.h"
 
@@ -48,7 +52,7 @@
 #ifdef _ENDPOINT_UBLOX_PLATFORM
     #undef LIGHT_NAME
     #undef ENDPOINT_GPS_COORDS
-    #define LIGHT_NAME              "light-mqtt-%d0"              // name of each light in this endpoint
+    #define PERSONALITY_NAME        "light-mqtt-%d0"              // name of each personality in this endpoint
     #define ENDPOINT_GPS_COORDS     "-115.148713 36.133672"       // golf course -115.143470 36.131916 
     #define UBLOX_USE_3G            true                          // use 3G or ethernet
     #define UBLOX_MODEM             UbloxUSBCDMAModem             // CDMA modem