Commit e614b4fe authored by 003's avatar 003

20201023 影子服务跟设备之间做状态同步

parent 5be0be8c
...@@ -48,8 +48,8 @@ public class NatsMQ { ...@@ -48,8 +48,8 @@ public class NatsMQ {
} }
} }
public static String getTopicCMDs() { public static String getTopicCMD() {
return T_CMD + "." + getHostName(LocalAddressUtil.getIp()); return T_CMD + ".*" ;
} }
public static String getHostName(String ip) { public static String getHostName(String ip) {
......
...@@ -71,7 +71,7 @@ public class DeviceCmdMQ implements NatsMQProcess { ...@@ -71,7 +71,7 @@ public class DeviceCmdMQ implements NatsMQProcess {
@Override @Override
public String getTopic() { public String getTopic() {
return NatsMQ.T_CMD; return NatsMQ.getTopicCMD();
} }
} }
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