From 0fd2ff9f9aca1f30d6b4620f90802223cc221fe0 Mon Sep 17 00:00:00 2001
From: GuoWenxue <“guowenxue@gmail.com”>
Date: Fri, 22 Apr 2022 09:17:24 +0800
Subject: [PATCH] update socket.c for listen socket

---
 mqttd/etc/conf.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mqttd/etc/conf.h b/mqttd/etc/conf.h
index 8a9c871..5a5d0c3 100644
--- a/mqttd/etc/conf.h
+++ b/mqttd/etc/conf.h
@@ -63,10 +63,10 @@
 
     /* Infrared detect inbreank  */
     unsigned char  infrared_pin; /* enable or disable inbreak detected */
-    void (*ifrd_handler)(void);  /* infrared detected interrupt handler */
     unsigned char  inbreak_beep; /* enable or diable beep when detect inbreak */
     unsigned char  fillin_light; /* fill-in light when detect inbrank or not */
-
+    unsigned char  light_intval; /* fill-in light interval time, unit second  */
+    double         lux_threshold; /* Lux sensor detect value smaller than treshold will fill-in light  */
 } hwconf_t;  
 
 

--
Gitblit v1.9.1