example: set example wifi scan method to all channel:

in CI example test we could have runners with same SSID in the same lab.
Use scan on all channel will let DUT connect to the AP with best RSSI.
This commit is contained in:
He Yin Ling 2021-06-09 10:12:57 +08:00 committed by bot
parent 1ea2b57b41
commit f5db736aa6

View File

@ -160,6 +160,7 @@ static void start(void)
.sta = {
.ssid = CONFIG_EXAMPLE_WIFI_SSID,
.password = CONFIG_EXAMPLE_WIFI_PASSWORD,
.scan_method = WIFI_ALL_CHANNEL_SCAN,
},
};
ESP_LOGI(TAG, "Connecting to %s...", wifi_config.sta.ssid);