[WebUI] Add Configure MQTT and Logging (#1592)
* Configure MQTT and Loggin * Configure MQTT speed up * Lint
This commit is contained in:
1 parent
6e8b463213
commit
1c367fd325
4 files changed
+145
-64
No files matched your search
+7
-3
@@ -585,6 +585,9 @@ void delayWithOTA(long waitMillis) {
|
||||
# endif
|
||||
# endif
|
||||
ArduinoOTA.handle();
|
||||
# if defined(ZwebUI) && defined(ESP32)
|
||||
WebUILoop();
|
||||
# endif
|
||||
delay(waitStep);
|
||||
}
|
||||
#else
|
||||
@@ -1589,6 +1592,9 @@ void loop() {
|
||||
if ((Ethernet.hardwareStatus() != EthernetW5100 && Ethernet.linkStatus() == LinkON) || (Ethernet.hardwareStatus() == EthernetW5100)) { //we are able to detect disconnection only on w5200 and w5500
|
||||
#endif
|
||||
failure_number_ntwk = 0;
|
||||
#if defined(ZwebUI) && defined(ESP32)
|
||||
WebUILoop();
|
||||
#endif
|
||||
if (client.loop()) { // MQTT client is still connected
|
||||
InfoIndicatorON();
|
||||
failure_number_ntwk = 0;
|
||||
@@ -1744,9 +1750,7 @@ void loop() {
|
||||
launchRTL_433Discovery(publishDiscovery);
|
||||
# endif
|
||||
#endif
|
||||
#if defined(ZwebUI) && defined(ESP32)
|
||||
WebUILoop();
|
||||
#endif
|
||||
|
||||
} else {
|
||||
// MQTT disconnected
|
||||
connected = false;
|
||||
|
||||
Reference in new issue
Block a user