模拟量数据上报修改

This commit is contained in:
huguanghan 2024-12-06 16:42:29 +08:00
parent d8de627199
commit 6bfe1d9282

View File

@ -261,7 +261,7 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
} }
Iterator<String> archiveKeys = archiveValues.fieldNames(); Iterator<String> archiveKeys = archiveValues.fieldNames();
while (archiveKeys.hasNext()) { while (archiveKeys.hasNext()) {
String fieldName = keysHigh.next(); String fieldName = archiveKeys.next();
String key = String.format("RT:%s:%s", deviceId, fieldName.toLowerCase()); String key = String.format("RT:%s:%s", deviceId, fieldName.toLowerCase());
keyValueMap.put(key, values.get(fieldName)); keyValueMap.put(key, values.get(fieldName));
if (highKey.contains(fieldName)){ if (highKey.contains(fieldName)){