From 038587a4ff652278fe22c2d03c1ebb602b95c5f0 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 22 七月 2025 12:54:49 +0800
Subject: [PATCH] 增强数据库功能和用户界面
---
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