Unknown Status of 2 From Network #10746
Unanswered
DS256
asked this question in
RP2040 / Pico
Replies: 1 comment 3 replies
-
My understanding is that Micropython error messages are or were preceded by a - sign to distinguish them from "normal" Python errors. Hmmm, I see some have - signs and another ones don't. Can you do a scan? I use this on my ESPNow systems and it should give you more information: https://github.com/glenn20/micropython-espnow-utils |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting a status of 2 coming back from WLAN.status() after WLAN.connect(...). What does the 2 mean? I can't see it listed in help(network)
Here's the code snippet
wlan.connect(secrets.ssid, secrets.pwd)
sleep(3)
# If the status is not 'connecting' (1) or connected abort
status = wlan.status()
if not ((status == 1) or wlan.isconnected() ):
This is what I see from help(network)
STAT_IDLE -- 0
STAT_CONNECTING -- 1
STAT_WRONG_PASSWORD -- -3
STAT_NO_AP_FOUND -- -2
STAT_CONNECT_FAIL -- -1
STAT_GOT_IP -- 3
Beta Was this translation helpful? Give feedback.
All reactions