From a8cc46897af0ec2f9d5ae0cb7a27798ba300e9bb Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期六, 26 七月 2025 16:10:11 +0800
Subject: [PATCH] 根据实际PLC数据修复数据解析逻辑
---
config/modbus_config.json | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/config/modbus_config.json b/config/modbus_config.json
index af48705..dc07a58 100644
--- a/config/modbus_config.json
+++ b/config/modbus_config.json
@@ -197,12 +197,18 @@
"LogLevel": "Info",
"MaxLogLines": 1000
},
-
+
"Database": {
"Enabled": true,
"Type": "Oracle",
- "ConnectionString": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.246)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = wr_dev; Password=wrdev",
+ "ConnectionString": "Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.92)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = ORCL))); Persist Security Info=True;User ID = lts_dev; Password=ltsdev",
"AutoCreateTables": true,
- "DataRetentionDays": 90
+ "DataRetentionDays": 90,
+ "Tables": {
+ "ModbusDataTable": "MODBUS_DATA",
+ "CommunicationLogTable": "COMMUNICATION_LOG",
+ "ErrorLogTable": "ERROR_LOG",
+ "StatisticsTable": "STATISTICS"
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3