ESP32 scan for ssid

For general Flowcode discussion that does not belong in the other sections.
Post Reply
WingNut
Posts: 270
http://meble-kuchenne.info.pl
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 41 times
Been thanked: 29 times

Flowcode v10 ESP32 scan for ssid

Post by WingNut »

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

BenR
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

Post by BenR »

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.

WingNut
Posts: 270
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 41 times
Been thanked: 29 times

Re: ESP32 scan for ssid

Post by WingNut »

Thanks Ben

Post Reply