链路心跳新增modbus和ftp状态

This commit is contained in:
谷成伟 2024-12-31 10:09:57 +08:00
parent 9dc5abf77a
commit e09f774532

View File

@ -49,7 +49,7 @@ public class HeartbeatCommand implements BaseCommand{
JsonNode realNode = linkNode.get("real");
if (realNode != null){
boolean real = realNode.asBoolean();
String key = String.format("link:%s:modbus", linkId);
String key = String.format("link:%s:real", linkId);
ops.set(key, real, HEARTBEAT_TTL, TimeUnit.SECONDS);
}
JsonNode ftpNode = linkNode.get("ftp");