From f5db736aa6fabc6b8850180282086e9ad76be5ce Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Wed, 9 Jun 2021 10:12:57 +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 482f163a14..03c2fb955a 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -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);