From 251ca7dd4ef43426afda915ea43b5402db22b557 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 a4cfb96801..441f5723c3 100644 --- a/examples/common_components/protocol_examples_common/connect.c +++ b/examples/common_components/protocol_examples_common/connect.c @@ -132,6 +132,7 @@ static void start() .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);