WiFi scanning

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

WiFi scanning

Postby snahmad75 » Sun Apr 14, 2019 1:02 pm

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.

littlesky
Posts: 51
Joined: Fri Jun 09, 2017 7:49 am

Re: WiFi scanning

Postby littlesky » Fri Apr 19, 2019 7:52 am

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).

Who is online

Users browsing this forum: No registered users and 193 guests