Example for sending TMP36 sensor data to Cayenne using an X-NUCLEO-IDW01M1 WiFi expansion board.

Dependencies:   Cayenne-MQTT-mbed NetworkSocketAPI TMP36 X_NUCLEO_IDW01M1v2 mbed

Files at this revision

API Documentation at this revision

Comitter:
jburhenn
Date:
Sat Nov 05 00:30:40 2016 +0000
Parent:
1:06d715293bc5
Child:
3:4aaef549540d
Commit message:
Removed channel from response topics.

Changed in this revision

Cayenne-MQTT-mbed.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Cayenne-MQTT-mbed.lib	Fri Nov 04 19:42:20 2016 +0000
+++ b/Cayenne-MQTT-mbed.lib	Sat Nov 05 00:30:40 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/myDevicesIoT/code/Cayenne-MQTT-mbed/#085bcf2e9a18
+http://developer.mbed.org/teams/myDevicesIoT/code/Cayenne-MQTT-mbed/#75cc2d58e796
--- a/main.cpp	Fri Nov 04 19:42:20 2016 +0000
+++ b/main.cpp	Sat Nov 05 00:30:40 2016 +0000
@@ -86,7 +86,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);
         }
     }