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: Cayenne-MQTT-mbed mbed Servo X_NUCLEO_IDW01M1v2 NetworkSocketAPI HCSR04
Diff: main.cpp
- Revision:
- 4:939f308d004a
- Parent:
- 3:4056f1cd4c47
- Child:
- 7:78cefe0937ab
--- a/main.cpp	Fri Nov 04 19:39:28 2016 +0000
+++ b/main.cpp	Sat Nov 05 00:29:27 2016 +0000
@@ -85,7 +85,7 @@
         
         // If this is a command message we publish a response. Here we are just sending a default 'OK' response.
         // An error response should be sent if there are issues processing the message.
-        if ((error = mqttClient.publishResponse(message.channel, message.id, NULL, message.clientID)) != CAYENNE_SUCCESS) {
+        if ((error = mqttClient.publishResponse(message.id, NULL, message.clientID)) != CAYENNE_SUCCESS) {
             printf("Response failure, error: %d\n", error);
         }
     }