From 4deb51ffc4dd4588183aed82bd7877909ba2130e Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 31 Jul 2019 11:19:22 +0800 Subject: [PATCH] update mqtt configure file, support breakin detect support --- mqttd/etc/mqttd.conf | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/mqttd/etc/mqttd.conf b/mqttd/etc/mqttd.conf index 4f1fe8a..0436a3b 100644 --- a/mqttd/etc/mqttd.conf +++ b/mqttd/etc/mqttd.conf @@ -1,18 +1,8 @@ [common] id="RPi.3B-GP-0001" -[inbreak] -# 入侵探测是否使能,如果hardware里面的红外没有设置,则即使设置了也不能生效 -enable=1 - -# 如果探测到人进来了是否响蜂鸣器: 0: 不响 >0: 蜂鸣器响的次数 -beep=1 - -# 如果探测到人来了是否通过继电器控制灯泡, 0:不补光 1:补光 2:根据光强传感器的信息自动补光,如果光强传感器不在则补光 -fillin_light=1 - -[hardware] # 树莓派连接的外设信息,0:禁用或未连接 其他: 使能或相关硬件连接的Pin管脚(wPI模式) +[hardware] # 是否使能硬件支持,如果是在X86上调试该程序,可以把该选项设置为0 enable=1 @@ -22,6 +12,9 @@ # 控制蜂鸣器,0: 禁用 !0:蜂鸣器连接树莓派的wPI管脚编号 beep_pin=0 + +# 蜂鸣器响的次数: 0: 不响 >0: 蜂鸣器响的次数 +beep_times=2 # RGB三色LED, 全0:禁用 !0: 三色LED相关引脚连接树莓派的wPI管脚编号 red_pin=0 @@ -35,7 +28,16 @@ sht2x=0 # 是否使能 TSL2561 光强传感器模块,0:禁用 1:使能 -lux=0 +lux=1 + +# 是否使能 红外 探测入侵功能, 0: 禁用 !0: 红外模块连接到树莓派的wPI管脚编号 +infrared_pin=28 + +# 探测到人来了是否响蜂鸣器, 0: 禁用 1:使能 +inbreak_beep=1 + +# 如果探测到人来了是否通过继电器控制灯泡, 0:不补光 1:补光 2:根据光强传感器的信息自动补光,如果光强传感器不在则补光 +fillin_light=2 [logger] @@ -75,7 +77,7 @@ pubQos=0 # Publisher上报传感器数据的周期,单位是秒 -interval=300 +interval=60 [subsciber] -- Gitblit v1.9.1