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 WIZnetInterface mbed
Diff: main.cpp
- Revision:
- 5:33c54ca4f666
- Parent:
- 4:f0decf0bcb18
- Child:
- 8:32492b844df9
diff -r f0decf0bcb18 -r 33c54ca4f666 main.cpp
--- a/main.cpp Fri Nov 04 19:36:59 2016 +0000
+++ b/main.cpp Sat Nov 05 00:28:29 2016 +0000
@@ -69,7 +69,7 @@
if (message.topic == COMMAND_TOPIC) {
// If this is a command message we publish a response to show we recieved it. 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);
}