MBED MQTT Lighting Endpoint for NXP LPC1768+AppBoard

Dependencies:   C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed

Revision:
8:45f9a920e82c
Parent:
0:ae2a45502448
Child:
9:ff877db53cfd
--- a/Definitions.h	Wed Feb 26 18:59:08 2014 +0000
+++ b/Definitions.h	Wed Feb 26 21:29:27 2014 +0000
@@ -50,7 +50,8 @@
 #define MQTT_ENDPOINT_ID    "mbed%d"                        // IOC MQTT Endpoint ID template
 #define MQTT_MAXID_VALUE    99                              // IOC MQTT Endpoint ID maximum integer value
 #define MQTT_ENDPOINT_IDLEN 64                              // IOC MQTT Endpoint ID length (max)
-#define MQTT_IOC_TOPIC      "ARM/sensinode/control/#"       // IOC MQTT Topic 
+#define MQTT_IOC_TOPIC      "ARM/sensinode/control/%s"      // IOC MQTT Topic 
+#define MQTT_IOC_TOPIC_LEN  42                              // max length for the topic string
 #define MQTT_USERNAME       ""                              // IOC MQTT Username
 #define MQTT_PASSWORD       ""                              // IOC MQTT Password