WLAN functions fail on Pico Pi W core1
Reproducible on 1.20 and latest nightly build (as of today)
Attempting to set up the Wifi module on core1 fails at the line ap.active(True) below which hangs. Code works fine on core0
Guarding code with a lock does not resolve the issue.
ssid = 'MicroPython-AP'
password = '123456789'
ap = network.WLAN(network.AP_IF)
ap.config(essid=ssid, password=password)
print("status = ", ap.status())
ap.active(True)
print(ap.ifconfig())
network.AP_IF creates a weird AP name and unable to connect
Raspberry pi pico w
Last u2f that downloads from here
relevant sidenote: have no idea why this downloads "unstable" versions or how to download stable ones.
When doing:
`import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid='pico', password='123456789')
`
it creates a network called PICOXXXXX(numbers and characters) instead of "pico". I tested in 2 different devices, unable to connect to that network either, seems like creating an AP on the pico w is broken. I was able to do it on previous builds for sure.