mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Captive portal show nearby WiFi with no ssid configured (#3748)
This commit is contained in:
parent
b2199d5464
commit
3120a0ba83
1 changed files with 4 additions and 1 deletions
|
@ -73,8 +73,11 @@ void WiFiComponent::setup() {
|
||||||
ESP_LOGV(TAG, "Setting Output Power Option failed!");
|
ESP_LOGV(TAG, "Setting Output Power Option failed!");
|
||||||
}
|
}
|
||||||
#ifdef USE_CAPTIVE_PORTAL
|
#ifdef USE_CAPTIVE_PORTAL
|
||||||
if (captive_portal::global_captive_portal != nullptr)
|
if (captive_portal::global_captive_portal != nullptr) {
|
||||||
|
this->wifi_sta_pre_setup_();
|
||||||
|
this->start_scanning();
|
||||||
captive_portal::global_captive_portal->start();
|
captive_portal::global_captive_portal->start();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef USE_IMPROV
|
#ifdef USE_IMPROV
|
||||||
|
|
Loading…
Reference in a new issue