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:
263:d513dc4dc2f2
Parent:
262:37ee4ebe74d6
Child:
264:49b7b7e68c49
--- a/Definitions.h	Wed Jul 09 21:11:33 2014 +0000
+++ b/Definitions.h	Wed Jul 16 17:30:10 2014 +0000
@@ -35,6 +35,12 @@
 //#define LIGHT_PERSONALITY               true                      // the endpoint will be a (set of) lights
 #define COPCAR_PERSONALITY              true                      // the endpoint will emulate a cop car
 
+// APM Demo Light Configuration
+#define APM_LIGHT_ENABLE            false                            // true - enable APM Demo light, undef - disable
+
+// External LED Light Configuration
+#define EXT_LED_ENABLE              true                            // true - enable external LED endpoint light, false - disable
+
 // include common definitions
 #include "CommonDefinitions.h"
 
@@ -51,8 +57,11 @@
 #undef GW_PORT
 #undef IOC_HOST_NAME
 #undef MQTT_HOSTNAME
-#define GW_IPADDRESS                "192.168.1.220"               // Gateway Broker IP
-#define GW_PORT                     "8888"                        // Gateway Broker port (def: 8888)
+//#define GW_IPADDRESS                "192.168.1.220"               // Gateway Broker IP
+//#define GW_PORT                     "8888"                        // Gateway Broker port (def: 8888)
+
+#define GW_IPADDRESS                "72.182.18.233"               // Gateway Broker IP (external)
+#define GW_PORT                     "26278"                       // Gateway Broker port (external)
 
 #define IOC_HOST_NAME               "193.60.130.112"              // IOC Web - iocweb.bcu.ac.uk
 #define MQTT_HOSTNAME               "193.60.130.110"              // IOC MQTT Broker Host - iocana.bcu.ac.uk
@@ -61,9 +70,6 @@
 #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              true                          // true - enable external LED endpoint light, false - disable
-
 // Endpoint GPS Coordinates/Location
 #define ENDPOINT_LOCATION           "Las Vegas Police Dept"       // Where this light/endpoint lives
 #define ENDPOINT_GPS_COORDS         "-115.147683 36.131735"       // Joe Brown Drive