feat: client config from yaml with interval/reconnect settings

This commit is contained in:
ngfchl
2026-06-19 16:46:41 +08:00
parent 22fb7e2c84
commit 742928a93d
2 changed files with 78 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
# Hardware Monitor Client 配置
#
# machine_name : 设备名称 (默认使用主机名)
# server : 服务端地址 (ip:port)
# interval : 采集间隔 (秒, 默认 3)
# reconnect_delay : 断线重连间隔 (秒, 默认 3)
#
# 删除此文件可重新配置
machine_name: my-pc
server: 192.168.1.100:8080
interval: 3
reconnect_delay: 3