diff --git a/example/iot-gateway/cloudAdapter/awsCloudAdapter.js b/example/iot-gateway/cloudAdapter/awsCloudAdapter.js
index 7bb2bf0a92fa42b95e7fe7ce37fab859cc84861e..9fae53e7fc32f13a7e4a1b51b0156a3ec91f8695 100644 (file)
if (stateObject.state.toggleLED === "true") {
var index = thingName.lastIndexOf("_");
var extAddr = thingName.substr(index+1);
- awsCloudAdapterInstance.emit('deviceActuation', {dstAddr : extAddr});
+ awsCloudAdapterInstance.emit('deviceActuation', {
+ cmd: "sendToggle", dstAddr : extAddr});
console.log('delta : ' + thingName + ' toggle LED');
}
});