From f458c74a9e88d8b01791184caac5a494d1125bff Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 16 Nov 2025 01:24:31 +0800
Subject: [PATCH] Update thingsboard default config

---
 project/thingsboard/etc/thingsboard.conf |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/project/thingsboard/etc/thingsboard.conf b/project/thingsboard/etc/thingsboard.conf
index 26339d6..428c229 100644
--- a/project/thingsboard/etc/thingsboard.conf
+++ b/project/thingsboard/etc/thingsboard.conf
@@ -1,5 +1,5 @@
 [common]
-devid="raspberrypi4b"
+devid="RaspberryPi#4B"
 
 # 树莓派连接的外设信息,0:禁用或未连接  其他: 使能或相关硬件连接的Pin管脚(wPI模式)
 [hardware]
@@ -13,14 +13,13 @@
 [logger]
 
 # 日志记录文件
-file=/tmp/thingsboard.log
+file=/var/log/thingsboard.log
 
 # 日志级别: 0:ERROR 1:WARN 2:INFO 3:DEBUG 4:TRACE 
 level=2
 
 # 日志回滚大小
 size=1024
-
 
 [broker]
 
@@ -35,8 +34,6 @@
 username="lingyun"
 password="lingyun"
 
-
-
 # broker给subsciber和publisher发送PING报文保持 keepalive 的时间周期,单位是秒
 keepalive=30
 
@@ -46,12 +43,12 @@
 
 [publisher]
 
-# mosquitto_pub -h weike-iot.com -p 2262 -t v1/devices/me/telemetry -i "raspberrypi4b" -u "l3ie6juxf0t9wn8kjsk4" -m '{"temperature":28.55, "humidity":70.65}'
+# mosquitto_pub -h weike-iot.com -p 2262 -u "l3ie6juxf0t9wn8kjsk4" -t v1/devices/me/telemetry -m '{"temperature":66.66, "humidity":88.88}'
 pubTopic="v1/devices/me/telemetry"
 pubQos=0
 
 # Publisher上报传感器数据的周期,单位是秒
-interval=60
+interval=600
 
 [subsciber]
 

--
Gitblit v1.9.1