From 480bfdd94fb57d3b3b5da34990907f255de43fee Mon Sep 17 00:00:00 2001 From: GuanYuankai Date: Thu, 16 Oct 2025 08:47:13 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E7=A0=81=E5=99=A8?= =?UTF-8?q?=E7=9A=84devices.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/devices.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config/devices.json b/config/devices.json index 38bb508..690950f 100644 --- a/config/devices.json +++ b/config/devices.json @@ -1,7 +1,7 @@ { "modbus_rtu_devices": [ { - "enabled": true, + "enabled": false, "device_id": "rtu_temp_sensor_lab", "port_path": "/dev/ttyS7", "baud_rate": 9600, @@ -13,14 +13,15 @@ ] }, { - "enabled": false, - "device_id": "water_meter_main_gate", + "enabled": true, + "device_id": "rotary encoder", "port_path": "/dev/ttyS7", "baud_rate": 9600, - "slave_id": 5, - "poll_interval_ms": 10000, + "slave_id": 111, + "poll_interval_ms": 5000, "data_points": [ - {"name": "total_flow", "address": 256, "type": "FLOAT32", "scale": 1.0} + {"name": "count", "address": 1, "type": "INT16", "scale": 1.0}, + {"name": "total_count", "address": 2, "type": "INT16", "scale": 1.0} ] }, {