Commit e614b4fe authored by 003's avatar 003

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

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