forked from Akcelerometry_drgania_WMT/PI_mikrokontroler
Poprawka logiki Captive Portal: zapobieganie wielokrotnemu uruchomieniu serwera
This commit is contained in:
@@ -275,6 +275,11 @@ bool WiFiManager::performOTAUpdate(bool allowInsecureTLS, std::function<void(int
|
||||
}
|
||||
|
||||
void WiFiManager::startCaptivePortal() {
|
||||
if (captivePortalActive) {
|
||||
ESP_LOGI(WIFI, "Captive Portal is already running.");
|
||||
return;
|
||||
}
|
||||
|
||||
ESP_LOGI(WIFI, "Starting Captive Portal");
|
||||
setupAccessPoint(ssidAP.c_str(), passwordAP.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user