MBED MQTT Lighting Endpoint for NXP LPC1768+AppBoard
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Revision 162:c9e9926cdc79, committed 2014-03-21
- Comitter:
- ansond
- Date:
- Fri Mar 21 05:44:05 2014 +0000
- Parent:
- 161:eea2bbfbb387
- Child:
- 163:392f89530162
- Commit message:
- updates
Changed in this revision
Definitions.h | Show annotated file Show diff for this revision Revisions of this file |
MQTTTransport.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Definitions.h Fri Mar 21 05:33:18 2014 +0000 +++ b/Definitions.h Fri Mar 21 05:44:05 2014 +0000 @@ -110,7 +110,7 @@ #define MAX_MQTT_MESSAGE_LENGTH 128 // MQTT connect information -#define MQTT_HOSTNAME "192.168.1.220" //"iocana.bcu.ac.uk" // IOC MQTT Broker Host - iocana.bcu.ac.uk +#define MQTT_HOSTNAME "iocana.bcu.ac.uk" // IOC MQTT Broker Host - iocana.bcu.ac.uk #define MQTT_HOSTPORT 1883 // IOC MQTT Broker Port #define MQTT_ENDPOINT_ID "mbed%d" // IOC MQTT Endpoint ID template #define MQTT_MAXID_VALUE 99 // IOC MQTT Endpoint ID maximum integer value
--- a/MQTTTransport.cpp Fri Mar 21 05:33:18 2014 +0000 +++ b/MQTTTransport.cpp Fri Mar 21 05:44:05 2014 +0000 @@ -169,10 +169,12 @@ if (message_value != NULL && strcmp(message_value,IOC_ENDPOINT_ALL_VERB) == 0) { // all // load up our endpoints endpoint->loadEndpoints(); + endpoint->updateEndpoints(); } else if (message_value != NULL && strcmp(message_value,this->m_endpoint_name) == 0) { // load up our endpoints (us only) endpoint->loadEndpoints(); + endpoint->updateEndpoints(); } }