Commit a809c611 by Chavee Issariyapat

fix bug in subscription

parent 741d27fa
......@@ -17,8 +17,8 @@ const Coordinator = function(param={}) {
});
if (that.localserver.sublist[deviceid] == undefined) {
that.remoteclient.subscribe(`@tap/shadow/${deviceid}:${client.token}`);
that.remoteclient.subscribe(`@tap/device/${deviceid}:${client.token}`);
that.remoteclient.subscribe(`@tap/shadow/update/${deviceid}:${client.token}`);
that.remoteclient.subscribe(`@tap/device/changed/${deviceid}:${client.token}`);
that.localserver.sublist[deviceid] = {
count : 1,
token : client.token
......
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