MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_ublox_cellular

Dependencies:   C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed

Revision:
9:ff877db53cfd
Parent:
8:45f9a920e82c
Child:
13:25448d92c205
diff -r 45f9a920e82c -r ff877db53cfd MQTTTransport.cpp
--- a/MQTTTransport.cpp	Wed Feb 26 21:29:27 2014 +0000
+++ b/MQTTTransport.cpp	Wed Feb 26 21:48:57 2014 +0000
@@ -119,7 +119,7 @@
                  // destined for our lights?
                  int index = -1;
                  if (message_name != NULL) {
-                     endpoint->indexOfLight((char *)message_name);
+                     index = endpoint->indexOfLight((char *)message_name);
                      if (index >= 0) {
                          if (message_verb != NULL && strcmp(message_verb,"Update") == 0) {
                             // update our endpoint