[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] # 日志记录文件 file=/tmp/mqttd.log # 日志级别: 0:Disable 1:Fatal 2:ERROR 3:warnning 4:Normal 5:Debug 6:Infor 7:Trace level=4 # 日志回滚大小 size=1024 [broker] # broker 服务器地址和端口号 hostname="master.iot-yun.com" port=10883 # broker 认证连接的用户名和密码 username="lingyun" password="lingyun-emb" # broker给subsciber和publisher发送PING报文保持 keepalive 的时间周期,单位是秒 keepalive=30 # Qos0: 发送者只发送一次消息,不进行重试,Broker不会返回确认消息。在Qos0情况下,Broker可能没有接受到消息 # Qos1: 发送者最少发送一次消息,确保消息到达Broker,Broker需要返回确认消息PUBACK。在Qos1情况下,Broker可能接受到重复消息 # Qos2: Qos2使用两阶段确认来保证消息的不丢失和不重复。在Qos2情况下,Broker肯定会收到消息,且只收到一次 [publisher] pubTopic="$Sys/Studio/Uplink" pubQos=0 # Publisher上报传感器数据的周期 interval=300 [subsciber] subTopic="$Sys/Studio/Downlink" subQos=0