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:
9:ff877db53cfd
Parent:
8:45f9a920e82c
Child:
10:748fc7052e61
--- a/Definitions.h	Wed Feb 26 21:29:27 2014 +0000
+++ b/Definitions.h	Wed Feb 26 21:48:57 2014 +0000
@@ -35,6 +35,10 @@
 #define LIGHT_ON_STATE      "0"                             // initial state of each light in this endpoint
 #define LIGHT_DIM_STATE     "25"                            // initial dimming state of each light in this endpoint
 
+// Endpoint GPS Coordinates
+#define ENDPOINT_LOCATION   "Oulo Finland"                  // Where this light/endpoint lives
+#define ENDPOINT_GPS_COORDS "65.017210,25.492411"           // Where this light/endpoint lives
+
 // Resource Configuration
 #define RESOURCE_NAME_LEN   64                              // Resource name max length
 #define RESOURCE_VALUE_LEN  64                              // Resource value max length
@@ -44,6 +48,9 @@
 #define MQTT_TRANSPORT      0                               // MQTT Transport index
 #define HTTP_TRANSPORT      1                               // HTTP Transport index
 
+// Index for Transport to use for Update/Load
+#define LOAD_TRANSPORT      1                               // 0 - MQTT, 1 - HTTP
+
 // MQTT connect information
 #define MQTT_HOSTNAME       "iocana.bcu.ac.uk"              // IOC MQTT Broker Host - iocana.bcu.ac.uk
 #define MQTT_HOSTPORT       1883                            // IOC MQTT Broker Port