ソースを参照

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.
He Yin Ling 4 年 前
コミット
de2baf098b

+ 1 - 0
examples/common_components/protocol_examples_common/connect.c

@@ -251,6 +251,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);