From 43bddffcea7d05c9297b94856ac986f89aa38b15 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Thu, 7 Oct 2021 23:23:33 +0300 Subject: [PATCH] get, load and mdns fix --- lighthub/main.cpp | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 9ad197e..a68f857 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -122,6 +122,9 @@ volatile uint32_t timerLanCheckTime = 0; volatile uint32_t timerThermostatCheck = 0; volatile uint32_t timerSensorCheck =0; volatile uint32_t WiFiAwaitingTime =0; +volatile unsigned long timerCount=0; +volatile int16_t timerNumber=-1; +volatile int8_t timerHandlerBusy=0; aJsonObject *pollingItem = NULL; @@ -173,6 +176,7 @@ if (configLocked) } debugSerial<child; while (items && item) @@ -212,6 +216,7 @@ debugSerial<1) } lanStatus= loadConfigFromHttp(arg_cnt, args); - ethClient.stop(); //Refresh MQTT connect to get retained info + //ethClient.stop(); //Refresh MQTT connect to get retained info } void printBool(bool arg) { (arg) ? infoSerial<