Hi,
Kindly help. urgent attention.
What is meaning of fast scan.
// configure the softAP and start it */
wifi_config_t ap_config;
ap_config.sta.scan_method = WIFI_FAST_SCAN;
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_AP, &ap_config));
ESP_ERROR_CHECK(esp_wifi_start());
It is working for better than normal scan.
not sure why?
Is it related with setting esp_wifi_set_country as well?
Now I am setting country code as well. I only want to scan channel between 1-11.
Is this correct way to esp_wifi_set_country before calling esp_wifi_start
I still gets all channels including channel more than channel number > 11
I also tried esp_wifi_set_country before esp_wifi_scan_start. It fails with error_code=258.
wifi_country_t wifi_country;
auto esp_err = esp_wifi_get_country(&wifi_country);
if (esp_err == ESP_OK) {
strcpy(wifi_country.cc, "USA");
wifi_country.schan = 1;
wifi_country.nchan = 11;
//wifi_country.policy = WIFI_COUNTRY_POLICY_AUTO;
esp_err = esp_wifi_set_country(&wifi_country);
}
Fast scan option and set_country to limit channel range (1-11)
Who is online
Users browsing this forum: No registered users and 154 guests