How can I get a list of unknown and available WiFi networks?

Have you had a look at the docs?

e.g. WiFi.scan()

2 Likes