please, can anyone explain why this code:
Code: Select all
def connectToWifi(SSID, PW):
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print("Connecting to network...")
wlan.connect(SSID, PW)
while not wlan.isconnected():
pass
print('Connection successful')
mac = ubinascii.hexlify(network.WLAN().config('mac'),':').decode()
return(wlan.ifconfig())
client_config = connectToWifi(SSID, PW)
print(client_config)
Code: Select all
>>> bcn_timout,ap_probe_send_start
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
pm close 7
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 1
cnt
connected with synwiuninet, channel 6
dhcp client start...
ip:10.0.0.191,mask:255.255.255.0,gw:10.0.0.2
pm open,type:2 0
Is there anywhere a list of these MicroPython wifi related warning/errors?
Thanks.