Per connectar l'ESP32 a una xarxa WiFi cal:
Importar el mòdul network de MicroPython, que permet connectar en xarxa.
Crear un objecte WLAN i configurar-lo com a estació (network.STA.IF)
Connectar a la xarxa, definida pel seu SSID (Service Set Identifier, nom de la xarxa) i contrassenya (només per a xarxes encriptades)
https://www.esploradores.com/micropython_conexwifi_station/
https://mpython.readthedocs.io/en/latest/library/micropython/network.html
WLAN scan:
https://docs.micropython.org/en/latest/wipy/tutorial/wlan.html
https://docs.micropython.org/en/latest/library/network.WLAN.html
https://www.esploradores.com/micropython_conexwifi_station/
wifi scan. https://embedded-things.blogspot.com/2021/03/esp32micropython-get-network-info.html