|
il y a 5 ans | |
---|---|---|
.settings | 8500b2180d Console support WIP! | il y a 5 ans |
components | a75f1f0cd5 fixed point resampling option | il y a 5 ans |
main | a75f1f0cd5 fixed point resampling option | il y a 5 ans |
.cproject | 7572c06800 Stabilizations | il y a 5 ans |
.gitattributes | a5b37a13c9 :confetti_ball: Added .gitattributes & .gitignore files | il y a 5 ans |
.gitignore | 463d66f6ac tune libsoxr | il y a 5 ans |
.project | be714988f1 Merge pull request #6 from philippe44/pr/4 | il y a 5 ans |
Makefile | 978afb363c full directory structure | il y a 5 ans |
README.md | ddfc03ea9b BT merge | il y a 5 ans |
partitions.csv | 8500b2180d Console support WIP! | il y a 5 ans |
sdkconfig | 375a5aec2a Added i2c tools | il y a 5 ans |
sdkconfig.defaults | 8500b2180d Console support WIP! | il y a 5 ans |
This example shows how to use scan of ESP32.
We have two way to scan, fast scan and all channel scan:
fast scan: in this mode, scan will finish after find match AP even didn't scan all the channel, you can set thresholds for signal and authmode, it will ignore the AP which below the thresholds.
all channel scan : scan will end after checked all the channel, it will store four of the whole matched AP, you can set the sort method base on rssi or authmode, after scan, it will choose the best one
and try to connect. Because it need malloc dynamic memory to store match AP, and most of cases is to connect to better signal AP, so it needn't record all the AP matched. The number of matches is limited to 4 in order to limit dynamic memory usage. Four matches allows APs with the same SSID name and all possible auth modes - Open, WEP, WPA and WPA2.