Example for connecting to Cayenne using the WIZnet_Library library.
Dependencies: Cayenne-MQTT-mbed WIZnet_Library mbed
Dependents: STM32F103C8T6-Cayenne-WIZnet_SD1306_BMP280
Revision 5:f3de9c6ca8f5, committed 2016-11-05
- Comitter:
- jburhenn
- Date:
- Sat Nov 05 00:27:40 2016 +0000
- Parent:
- 4:58789e0a7b70
- Child:
- 6:064a5af756f3
- 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:33:07 2016 +0000 +++ b/Cayenne-MQTT-mbed.lib Sat Nov 05 00:27: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:33:07 2016 +0000 +++ b/main.cpp Sat Nov 05 00:27:40 2016 +0000 @@ -72,7 +72,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); }