← index #7207PR #1612
Related · medium · value 1.759
QUERY · ISSUE

Documentation WLAN.connect()

openby karfasopened 2021-05-03updated 2025-11-06
docs

In https://docs.micropython.org/en/latest/wipy/tutorial/wlan.html, the connect() method reads
wlan.connect(net.ssid, auth=(net.sec, 'mywifikey'), timeout=5000)

In contrary, https://docs.micropython.org/en/latest/library/network.WLAN.html?highlight=wlan#network.WLAN.connect describes the connect() call as
WLAN.connect(ssid=None, password=None, *, bssid=None)

Which one is the correct/current one (and for which port ?) ?
This is quite confusing for new users, I think.

CANDIDATE · PULL REQUEST

doc: make wifi/wlan naming consistent with tutorial.rst

closedby zsquarepluscopened 2015-11-10updated 2015-11-18

tutorial and quickref use a different variable name which makes it harder-than-need to combine example code

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