From 4bb23da006f050c6014156c9aab675f37dda906a Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 15 Nov 2025 01:48:22 +0800
Subject: [PATCH] update thingsboard and test okay
---
project/thingsboard/config.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/project/mosquitto/conf.h b/project/thingsboard/config.h
similarity index 95%
rename from project/mosquitto/conf.h
rename to project/thingsboard/config.h
index 89d3a66..8cf4e2e 100644
--- a/project/mosquitto/conf.h
+++ b/project/thingsboard/config.h
@@ -2,13 +2,13 @@
* Copyright: (C) 2019 LingYun IoT System Studio
* All rights reserved.
*
- * Filename: conf.h
+ * Filename: config.h
* Description: This file is mqttd configure file parser function
- *
+ *
* Version: 1.0.0(2019年06月25日)
* Author: Guo Wenxue <guowenxue@gmail.com>
* ChangeLog: 1, Release initial version on "2019年06月25日 22时23分55秒"
- *
+ *
********************************************************************************/
#ifndef __CONF_H_
#define __CONF_H_
@@ -24,7 +24,7 @@
#define DEF_PUBINTERVAL 120
#define DEF_QOS Qos2
-typedef struct hwconf_s
+typedef struct hwconf_s
{
int relay; /* relay aviable or not. 0:Disable 1: Enable */
int led; /* RGB led aviable or not. 0:Disable 1: Enable */
@@ -32,7 +32,7 @@
int ds18b20; /* DS1B820 aviable or not. 0:Disable 1: Enable */
int sht2x; /* SHT20 aviable or not. 0:Disable 1: Enable */
int tsl2561; /* TSL2561 aviable or not. 0:Disable 1: Enable */
-} hwconf_t;
+} hwconf_t;
typedef struct mqtt_ctx_s
@@ -52,6 +52,7 @@
int port; /* MQTT broker listen port */
char uid[64]; /* username */
char pwd[64]; /* password */
+ char token[64]; /* token */
int keepalive; /* MQTT broker send PING message to subsciber/publisher keepalive timeout<seconds> */
/* Publisher settings */
--
Gitblit v1.9.1