From 84c0c2f8a4f9227a1f1e5c0ddc0435b96dc6f0ac Mon Sep 17 00:00:00 2001 From: balu Date: Fri, 22 Oct 2021 16:18:40 +0200 Subject: [PATCH] starts Webportal always Does also start the webportal if wifi is already configures makes it easier to change settings if needed --- src/esp8266-vindriktning-particle-sensor.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/esp8266-vindriktning-particle-sensor.ino b/src/esp8266-vindriktning-particle-sensor.ino index 0265ac2..9a576e3 100644 --- a/src/esp8266-vindriktning-particle-sensor.ino +++ b/src/esp8266-vindriktning-particle-sensor.ino @@ -119,6 +119,7 @@ void loop() { ArduinoOTA.handle(); SerialCom::handleUart(state); mqttClient.loop(); + wifiManager.process(); const uint32_t currentMillis = millis(); if (currentMillis - statusPublishPreviousMillis >= statusPublishInterval) { @@ -161,6 +162,8 @@ void setupWifi() { // This is most likely a logic error which could be fixed otherwise Config::load(); } + + wifiManager.startWebPortal(); } void resetWifiSettingsAndReboot() {