AP connect is ignoring password #13373
Unanswered
ctimmer
asked this question in
RP2040 / Pico
Replies: 2 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Once connected to an AP, the connection will survive a soft reset. This is not the case with a hard reset. MPY: soft reboot
MicroPython ...
>>> import network
>>> wlan = network.WLAN(network.STA_IF)
>>> wlan.active(True)
True
>>> wlan.isconnected()
True
>>> wlan.connect("dlink-1234", "sdfsdfsdfsdf") # Do nothing, already connected
>>> print(wlan.ifconfig())
('192.168.4.85', '255.255.252.0', '192.168.4.1', '192.168.4.1')
>>> wlan.disconnect()
>>> wlan.isconnected()
False
>>> print(wlan.ifconfig())
('0.0.0.0', '0.0.0.0', '0.0.0.0', '192.168.4.1')
>>> wlan.connect("dlink-1234", "sdfsdfsdfsdf") # wrong PWD
>>> wlan.isconnected()
False
>>> wlan.isconnected()
False
>>> wlan.isconnected()
False
>>> wlan.isconnected()
False
>>> wlan.disconnect()
>>> # try to connect again with the correct password The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After connecting to an access point with the correct password, the connection succeeds even with an incorrect password
The wait for connection loop with displays:
After setting the password to "Error" (1st line) the connection still succeeds:
Seems like it doesn't use the password after a good connect. I don't think this happened in the previous MP release.
This latest MP version now returns STAT_NO_AP_FOUND when the SSID is invalid. Good progress!
Curt
Beta Was this translation helpful? Give feedback.
All reactions