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:
202:eb38b2ac75af
Parent:
201:9d17a43f63b9
Child:
204:18076cbf21a9
--- a/Definitions.h	Mon Mar 31 19:42:57 2014 +0000
+++ b/Definitions.h	Mon Mar 31 20:26:36 2014 +0000
@@ -23,16 +23,16 @@
 #include "mbed.h"
 
 // Platform Switch
-#define   _ENDPOINT_UBLOX_PLATFORM      true                // uncomment for the U-Blox MBED platform
-//#define   _ENDPOINT_FREESCALE_PLATFORM  true                // uncomment for the Freescale Freedom MBED platform
-//#define   _ENDPOINT_NXP_PLATFORM        true                // uncomment for the NXP MBED platform
+#define   _ENDPOINT_UBLOX_PLATFORM      true                      // uncomment for the U-Blox MBED platform
+//#define   _ENDPOINT_FREESCALE_PLATFORM  true                    // uncomment for the Freescale Freedom MBED platform
+//#define   _ENDPOINT_NXP_PLATFORM        true                    // uncomment for the NXP MBED platform
 
 // Network Usage (default is Ethernet)
-#define CELLULAR_NETWORK                true                        // true - use cellular network, false - use ethernet (cannot co-exist together)
+#define CELLULAR_NETWORK                true                      // true - use cellular network, false - use ethernet (cannot co-exist together)
 
 // 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
+//#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"
@@ -41,23 +41,18 @@
 #include "MQTTDefinitions.h"
 
 // Philips Light Config
-#define PL_ENABLE                   false                           // true - enable for endpoint light, false - disable
-#define PL_LIGHT_ID                 PL_LIGHT_ID_BILL                // Default light for Philips Light
+#define PL_ENABLE                   false                         // true - enable for endpoint light, false - disable
+#define PL_LIGHT_ID                 PL_LIGHT_ID_BILL              // Default light for Philips Light
 
 // External LED Light Configuration
-#define EXT_LED_ENABLE              false                            // true - enable external LED endpoint light, false - disable
+#define EXT_LED_ENABLE              false                         // true - enable external LED endpoint light, false - disable
 
 // Endpoint GPS Coordinates/Location
-#define ENDPOINT_LOCATION           "Las Vegas Country Club"         // Where this light/endpoint lives
-#define ENDPOINT_GPS_COORDS         "-115.143470 36.131916"          // golf course -115.143470 36.131916 
+#define ENDPOINT_LOCATION           "Las Vegas Police Dept"       // Where this light/endpoint lives
+#define ENDPOINT_GPS_COORDS         "36.131735,-115.147683"       // Joe Brown Drive 
 
 // Reset our config values if needed
 #ifdef _ENDPOINT_UBLOX_PLATFORM
-    #undef LIGHT_NAME
-    #undef ENDPOINT_GPS_COORDS
-    #undef PERSONALITY_NAME
-    #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
     #define UBLOX_CDMA_DELAY_MS     1000                          // connect delay in MS