From 8a0e43e2ba062b35f20ddcd83a7811a9e1a71786 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 31 Jul 2019 17:06:01 +0800 Subject: [PATCH] update mqttd for auto fill-in light and test ok --- mqttd/etc/conf.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/mqttd/etc/conf.c b/mqttd/etc/conf.c index d9df566..2907a2e 100644 --- a/mqttd/etc/conf.c +++ b/mqttd/etc/conf.c @@ -182,6 +182,9 @@ ctx->hwconf.light_intval = iniparser_getint(ini, "hardware:light_intval", 20); log_nrml("Parser inbreak fill-in light interval time [%d]\n", ctx->hwconf.light_intval); + + ctx->hwconf.lux_threshold = iniparser_getdouble(ini, "hardware:lux_threshold", 0.1); + log_nrml("Parser fill-in light threshold lux [%.03f]\n", ctx->hwconf.lux_threshold); } -- Gitblit v1.9.1