guowenxue
2019-07-31 f22ec1a61392d8b42771405cd3afc7cc6fc65b17
update mqttd.conf for inbreak support
2 files modified
34 ■■■■■ changed files
mqttd/etc/conf.h 2 ●●● patch | view | raw | blame | history
mqttd/etc/mqttd.conf 32 ●●●●● patch | view | raw | blame | history
mqttd/etc/conf.h
@@ -13,7 +13,7 @@
#ifndef  __CONF_H_
#define  __CONF_H_
#define DEF_BORKER_HOSTNAME        "master.iot-yun.com"
#define DEF_BORKER_HOSTNAME        "master.iot-yun.club"
#define DEF_BROKER_PORT            10883
#define DEF_BROKER_KEEPALIVE       30
#define DEF_BROKER_USERNAME        "lingyun"
mqttd/etc/mqttd.conf
@@ -1,30 +1,40 @@
[common]
id="RPi.3B-GP-0001"
[hardware]
# Settings 0:sisable  others: enable or connected #PIN nubmer(wPI)
# Enablue hardware support or not, help to running on X86
[inbreak]
# 入侵探测是否使能,如果hardware里面的红外没有设置,则即使设置了也不能生效
enable=1
# relay connected wPI #pin number, if set to 0 means disable
# 如果探测到人进来了是否响蜂鸣器: 0: 不响  >0: 蜂鸣器响的次数
beep=1
# 如果探测到人来了是否通过继电器控制灯泡, 0:不补光 1:补光 2:根据光强传感器的信息自动补光,如果光强传感器不在则补光
fillin_light=1
[hardware]
# 树莓派连接的外设信息,0:禁用或未连接  其他: 使能或相关硬件连接的Pin管脚(wPI模式)
# 是否使能硬件支持,如果是在X86上调试该程序,可以把该选项设置为0
enable=1
# 控制220V照明灯的继电器, 0: 禁用   !0:继电器模块树莓派的wPI管脚编号
relay_pin=29
# beep connected wPI #pin number, if set to 0 means disable
# 控制蜂鸣器,0: 禁用   !0:蜂鸣器连接树莓派的wPI管脚编号
beep_pin=0
# RGB 3-colors LED connect wPI #pin number, if all set to 0 means disable
# RGB三色LED, 全0:禁用   !0: 三色LED相关引脚连接树莓派的wPI管脚编号
red_pin=0
green_pin=0
blue_pin=0
# temperature sensor ds18b20
# 是否使能 DS18b20 温度传感器模块,0:禁用  1:使能
ds18b20=1
# temperature and hummidity sensor sht2x
# 是否使能 SHT2X 温湿度传感器模块,0:禁用  1:使能
sht2x=0
# light intensity sensor TSL2561
# 是否使能 TSL2561 光强传感器模块,0:禁用  1:使能
lux=0
@@ -64,7 +74,7 @@
pubTopic="$Sys/Studio/Uplink"
pubQos=0
# Publisher上报传感器数据的周期
# Publisher上报传感器数据的周期,单位是秒
interval=300
[subsciber]