From 45e62dbd9e964c74b24f7fcadad9b418f117e008 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 27 Jun 2019 15:11:42 +0800
Subject: [PATCH] update mqttd, add hardware configured in configure files

---
 mqttd/etc/mqttd.conf |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/mqttd/etc/mqttd.conf b/mqttd/etc/mqttd.conf
index f531c61..773f954 100644
--- a/mqttd/etc/mqttd.conf
+++ b/mqttd/etc/mqttd.conf
@@ -1,3 +1,32 @@
+[common]
+id="rpi3b001"
+
+[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
@@ -33,11 +62,10 @@
 [publisher]
 
 pubTopic="$Sys/Studio/Uplink"
-pubQos=2
+pubQos=0
 
 # Publisher上报传感器数据的周期
-interval=5
-
+interval=300
 
 [subsciber]
 

--
Gitblit v1.9.1