From cd006b9357bcb632a2d4539c086fb93ca6ae23c6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 23:37:49 +0800
Subject: [PATCH] Update lightd to support DS18B20 and TLS2561

---
 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