From c13c9806f957ebc675462737f4b328d3ab89e028 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 10 Jul 2023 17:29:22 +0800 Subject: [PATCH] update gpsd.c --- mqttd/etc/mqttd.conf | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/mqttd/etc/mqttd.conf b/mqttd/etc/mqttd.conf index 0436a3b..cb3e78c 100644 --- a/mqttd/etc/mqttd.conf +++ b/mqttd/etc/mqttd.conf @@ -39,6 +39,12 @@ # 如果探测到人来了是否通过继电器控制灯泡, 0:不补光 1:补光 2:根据光强传感器的信息自动补光,如果光强传感器不在则补光 fillin_light=2 +# 继电器补光时长, 单位秒. 红外探测到人后电平为此时间大概是35秒左右 +light_intval=35 + +# 光强传感器采样值低于该阈值将开灯 +lux_threshold=0.01 + [logger] -- Gitblit v1.9.1