From 625b228103568e682b10b0227e5269346d025490 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Fri, 17 Jan 2025 09:22:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=9C=20Faster=20connection=20for=20one?= =?UTF-8?q?=20network?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/lib/ESP32-sveltekit/wifi_service.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esp32/lib/ESP32-sveltekit/wifi_service.cpp b/esp32/lib/ESP32-sveltekit/wifi_service.cpp index b8580ee..cd46e6d 100644 --- a/esp32/lib/ESP32-sveltekit/wifi_service.cpp +++ b/esp32/lib/ESP32-sveltekit/wifi_service.cpp @@ -23,6 +23,11 @@ void WiFiService::begin() { _persistence.readFromFS(); reconfigureWiFiConnection(); + + if (state().wifiSettings.size() == 1) { + configureNetwork(state().wifiSettings[0]); + delay(500); + } } void WiFiService::reconfigureWiFiConnection() {