From 8baf0e91fbb8a0ec580d4c00eac9c7bb3dd0de73 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 31 Jul 2019 01:08:18 +0800 Subject: [PATCH] update mqttd.conf, update hostname and ID --- mqttd/etc/mqttd.conf | 38 +++++++++++++++++++++++++++++++++----- 1 files changed, 33 insertions(+), 5 deletions(-) diff --git a/mqttd/etc/mqttd.conf b/mqttd/etc/mqttd.conf index 4365594..5223d2f 100644 --- a/mqttd/etc/mqttd.conf +++ b/mqttd/etc/mqttd.conf @@ -1,3 +1,32 @@ +[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 +enable=1 + +# relay connected wPI #pin number, if set to 0 means disable +relay_pin=29 + +# beep connected wPI #pin number, if set to 0 means disable +beep_pin=0 + +# RGB 3-colors LED connect wPI #pin number, if all set to 0 means disable +red_pin=0 +green_pin=0 +blue_pin=0 + +# temperature sensor ds18b20 +ds18b20=1 + +# temperature and hummidity sensor sht2x +sht2x=0 + +# light intensity sensor TSL2561 +lux=0 + [logger] @@ -5,7 +34,7 @@ file=/tmp/mqttd.log # 日志级别: 0:Disable 1:Fatal 2:ERROR 3:warnning 4:Normal 5:Debug 6:Infor 7:Trace -level=5 +level=4 # 日志回滚大小 size=1024 @@ -15,7 +44,7 @@ [broker] # broker 服务器地址和端口号 -hostname="master.iot-yun.com" +hostname="master.iot-yun.club" port=10883 # broker 认证连接的用户名和密码 @@ -33,11 +62,10 @@ [publisher] pubTopic="$Sys/Studio/Uplink" -pubQos=2 +pubQos=0 # Publisher上报传感器数据的周期 -interval=60 - +interval=300 [subsciber] -- Gitblit v1.9.1