← index #5467Issue #11977
Off-topic · high · value 0.252
QUERY · ISSUE

pyboard-D AP_IF - Unable to set up a secure wlan

openby swehogopened 2019-12-28updated 2021-07-27
port-stm32

Unable to setup a secure wlan (password protected), the password config param is there for this reason?

The code below are from the example at pybd.io.

MicroPython v1.12-23-ge83ab7374 on 2019-12-27; PYBD-SF2W with STM32F722IEK

`import network

wl_ap = network.WLAN(1)
wl_ap.config(essid='PYBD') # set AP SSID
wl_ap.config(password='pybd0123') # set AP password
wl_ap.config(channel=6) # set AP channel
wl_ap.active(1) # enable the AP`

CANDIDATE · ISSUE

WLAN functions fail on Pico Pi W core1

openby ayjaymopened 2023-07-09updated 2023-11-03
bugport-rp2

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())

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied