MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_nxp

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

Revision:
93:e3b732068ae9
Parent:
89:6e7dd4cba216
Child:
129:c4fa24308e33
diff -r 941d60c68668 -r e3b732068ae9 MQTTTransport.cpp
--- a/MQTTTransport.cpp	Tue Mar 11 15:49:34 2014 +0000
+++ b/MQTTTransport.cpp	Tue Mar 11 16:57:33 2014 +0000
@@ -142,6 +142,10 @@
                     // load up our endpoints
                     endpoint->loadEndpoints();
                  }
+                 else if (message_value != NULL && strcmp(message_value,this->m_endpoint_name) == 0) {
+                    // load up our endpoints (us only)
+                    endpoint->loadEndpoints();
+                 }
              }
              
              else if (message_verb != NULL && strcmp(message_verb,IOC_REQUEST_UPDATE_ALL_VERB) == 0) {  // update