From 5e9d03d507aad324a803eb8795e0eed6fb671761 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 10 Jul 2023 15:24:52 +0800
Subject: [PATCH] Merge branch 'master' of http://master.iot-yun.club:8088/r/raspberrypi

---
 iotd/conf/conf.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/iotd/conf/conf.c b/iotd/conf/conf.c
index 6c3ebcf..aa0e2d1 100644
--- a/iotd/conf/conf.c
+++ b/iotd/conf/conf.c
@@ -72,6 +72,11 @@
                 if( 3 == rv) 
                 {
                     log_nrml("parser GPIO input[%s] BCM[%d] active[%d]\n", gpio->input[cnt].name, gpio->input[cnt].pin, gpio->input[cnt].active_level);
+                    if( strstr(gpio->input[cnt].name, "infrared") )
+                    {
+                        log_nrml("parser GPIO enable infrared detect\n");
+                        gpio->infrared_enable = 1;
+                    }
                     cnt++;
                     gpio->incnt = cnt;
                 }
@@ -289,6 +294,7 @@
     {
         strncpy(mqtt_ctx->pubTopic, str, sizeof(mqtt_ctx->pubTopic) );
         mqtt_ctx->pubQos = iniparser_getint(ini, "publisher:pubQos", 0);
+        mqtt_ctx->interval = iniparser_getint(ini, "publisher:interval", 60);
         mqtt_ctx->pub_enable = 1;
 
         log_nrml("Parser publisher topic \"%s\" with Qos[%d]\n", mqtt_ctx->pubTopic, mqtt_ctx->pubQos);

--
Gitblit v1.9.1