dd

Dependencies:   Cayenne-MQTT-mbed mbed ESP8266Interface

Revision:
6:b90ebca0de01
Parent:
5:e4607ebed2f3
Child:
9:4302de820980
--- a/main.cpp	Fri Nov 04 19:29:31 2016 +0000
+++ b/main.cpp	Sat Nov 05 00:25:02 2016 +0000
@@ -75,7 +75,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);
 		}