Quick Q about this macro. It returns and index number to a max of 8. What determines which ssid is which index id. If for example i put this in a loop and prints the results to a screen, will it always be the same wifi connection for 0, for 1 etc? And what determines this? Is it signal strength?
Thanks in advance
N - esp noob
ESP32 scan for ssid
-
- Posts: 270
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 13, 2021 1:53 pm
- Has thanked: 41 times
- Been thanked: 29 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: ESP32 scan for ssid
Hello,
Wifi routers with broadcast ssid enabled periodically send out their ssid. The esp simple listens for these messages and reports them in the order it receives them.
So no it won't always be the same order and is best to check the names of ssids from the scan before connecting.
Wifi routers with broadcast ssid enabled periodically send out their ssid. The esp simple listens for these messages and reports them in the order it receives them.
So no it won't always be the same order and is best to check the names of ssids from the scan before connecting.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel