From 3ef6cf39749c00366b12aef9f023aac3bda16f2d Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 23:39:25 +0800
Subject: [PATCH] update modules for tsl2561 and ds18b20

---
 project/lightd/config.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/project/lightd/config.h b/project/lightd/config.h
index 5bff2bc..85f47ff 100644
--- a/project/lightd/config.h
+++ b/project/lightd/config.h
@@ -28,7 +28,8 @@
 
 typedef struct mqtt_ctx_s
 {
-    char          devid[32];    /*  device ID */
+    char            devid[32];    /*  device ID */
+    void           *userdata;      /* user data pointer */
 
     /* Broker settings  */
     char            host[128];  /* MQTT broker server name  */
@@ -61,6 +62,8 @@
     gpio_t          gpio;         /* gpio information */
     int             light_intval; /* light on interval */
     float           lux_threshold;/* lux threshold value  */
+    int             ds18b20;      /* ds18b20 enable or not */
+    int             tsl2561;      /* tsl2561 enable or not */
 } hwinfo_t;
 
 typedef struct iotd_ctx_s

--
Gitblit v1.9.1