优化双通道高压源

This commit is contained in:
leon
2026-09-05 08:39:18 +08:00
parent f3526e46f1
commit 17233eb947
5 changed files with 147 additions and 28 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ PARITY = 'N'
STOPBITS = 1
# 读取间隔(秒)
READ_INTERVAL = 1
READ_INTERVAL = 0.5
# MQTT主题
DEVICE_STATUS_TOPIC = "device/status"
@@ -25,12 +25,12 @@ SERVICE_STATUS_TOPIC = "service/status"
# 寄存器配置 - 根据实际设备修改
INPUT_REGISTERS = {
"start_address": 0,
"count": 5
"count": 2
}
COIL_REGISTERS = {
"start_address": 0,
"count": 10
"count": 4
}
CONFIG_FILE = "/home/admin/.config/cpy/hvs.json"