Increased wifi ap timeout.

This commit is contained in:
Holger Weber
2026-02-26 22:51:50 +01:00
parent db4964636c
commit 7c893c0966

View File

@@ -516,7 +516,8 @@ void startWebInterface()
WiFi.begin(g_sWifiSsid.c_str(), g_sWifiPassword.c_str());
const unsigned long connectStart = millis();
const unsigned long connectTimeoutMs = 10000;
const unsigned long connectTimeoutMs = 20000;
Serial.println(String("Trying to connect to Wifi: ") + g_sWifiSsid.c_str() + g_sWifiPassword.c_str());
while (WiFi.status() != WL_CONNECTED && millis() - connectStart < connectTimeoutMs)
{
delay(250);