From 698964f4b916f41799495d444be3c943bc942f7e Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Wed, 23 Jun 2021 13:58:42 +0800 Subject: [PATCH] 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. --- examples/common_components/protocol_examples_common/connect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/common_components/protocol_examples_common/connect.c b/examples/common_components/protocol_examples_common/connect.c index d6d2c0f2c2..c878d4e80e 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -265,6 +265,7 @@ static esp_netif_t *wifi_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);