Page 1 of 1

WiFi scanning

Posted: Sun Apr 14, 2019 1:02 pm
by snahmad75
Hi,

I understood wifi scan for all channels from 1-13 by default for active scanning


as our product needs to work in all countries.

I would like it scan only from 1-11 for active scanning and 12 and 13 channel as passive scanning.


I now set esp_wifi_set_country to usa with channel range(1-11)

This way it will works in usa and any other country.

Is this correct way?

Can some one explain fast scanning and all scanning method option as well.

I am using fast scanning method.

Re: WiFi scanning

Posted: Fri Apr 19, 2019 7:52 am
by littlesky
If you set country to USA, ESP32 will do active scan on channel 1~11.

Fast scanning and all scanning methods are for connecting scan. If using fast scanning method, ESP32 will start to connect when it scans the first right AP(SSID matches). If using all scanning methods, ESP32 will start to connect when it scans all the right APs(SSID matches).