Commit 8f3ef3ee by Chavee Issariyapat

fix bug wrong subscription to shadow updated topic

parent a809c611
......@@ -17,7 +17,7 @@ const Coordinator = function(param={}) {
});
if (that.localserver.sublist[deviceid] == undefined) {
that.remoteclient.subscribe(`@tap/shadow/update/${deviceid}:${client.token}`);
that.remoteclient.subscribe(`@tap/shadow/updated/${deviceid}:${client.token}`);
that.remoteclient.subscribe(`@tap/device/changed/${deviceid}:${client.token}`);
that.localserver.sublist[deviceid] = {
count : 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment