wlan = WLAN(mode=WLAN.STA)
# go for fixed IP settings
wlan.ifconfig(config=('dhcp'))
wlan.scan() # scan for available networks
wlan.connect(ssid='mySsid', auth=(WLAN.WPA2, 'somePassword'))
while not wlan.isconnected():
pass
I don't want to put the code into main.py or boot.py because i'm not always using the WiPy at home, and i can connect to it only with Wi-Fi, so it would be trouble some when i'm not at my home network.
PS: I'm new to the forum, nice to meet you all. Searched for this already, but couldn't really find anything, so i hope its okay to ask that.
