mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 08:15:49 +00:00
not hidden if found
This commit is contained in:
@@ -384,6 +384,7 @@ WiFiAP WiFiComponent::build_selected_ap_() const {
|
|||||||
const WiFiScanResult &scan = this->scan_result_[0];
|
const WiFiScanResult &scan = this->scan_result_[0];
|
||||||
// If we have scan data, the network is visible (not hidden) - use it regardless of config
|
// If we have scan data, the network is visible (not hidden) - use it regardless of config
|
||||||
// Hidden networks don't appear in scan results, so presence of scan data is ground truth
|
// Hidden networks don't appear in scan results, so presence of scan data is ground truth
|
||||||
|
params.set_hidden(false);
|
||||||
params.set_ssid(scan.get_ssid());
|
params.set_ssid(scan.get_ssid());
|
||||||
params.set_bssid(scan.get_bssid());
|
params.set_bssid(scan.get_bssid());
|
||||||
params.set_channel(scan.get_channel());
|
params.set_channel(scan.get_channel());
|
||||||
|
|||||||
Reference in New Issue
Block a user