Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MQTTTransport.cpp
- Revision:
- 9:ff877db53cfd
- Parent:
- 8:45f9a920e82c
- Child:
- 13:25448d92c205
--- 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