You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if wlan.status() == 201 , Post right SSID {"wifi_password": "wrong12345678", "wifi_ssid": "km"} to http://192.168.4.1/wifi :
连接 km wrong12345678
开始连接 km wrong12345678
连接重试: 1 201
连接出错 没有找到网络
HTTP客户端断开
开始连接 km wrong12345678
连接重试: 1 201
连接出错 没有找到网络
wlan.status() always 201...
Expected behaviour
The 201 status should not remain when reconnecting to an right network again.
Regardless of whether it was 201 or 202 status before, network should be reset when reconnecting.
WLAN connection failure should not cause the AP to disconnect.
Observed behaviour
When reconnect to right SSID with wrong password, the wlan.status() should be 202. After testing, it was found that the board may still be connected to the previous SSID(kmx).
When wlan.status() is 201 , I must call wlan.active(False) immediately. If not do this, the AP will shutdown automatic. But after call wlan.active(False) , the AP can continue to work.
And if connect to right SSID with wrong password at first time(wlan.status() is 202), Then post right SSID and right password, The board can connect successful.
Additional Information
The user's situation is much more complicated when distributing the network. Hope the API behaves as expected. Thanks very much.
The text was updated successfully, but these errors were encountered:
alx696
changed the title
ESP32-C3-MINI-1(DK):network.WLAN can not: connect anymore if 201 status appears, Once connected, cannot be disconnected
ESP32-C3-MINI-1(DK):network.WLAN can not connect success anymore if 201 status appears
Apr 26, 2024
Checks
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
I've searched for existing issues matching this bug, and didn't find any.
Port, board and/or hardware
ESP32-C3-MINI-1(DK) ESP-ROM:esp32c3-api1-20210207
MicroPython version
MicroPython v1.22.2 on 2024-02-22; ESP32C3 module with ESP32C3
Reproduction
run code:
Post not exists SSID
{"wifi_password": "wrong12345678", "wifi_ssid": "kmx"}
tohttp://192.168.4.1/wifi
:if
wlan.status() == 201
, Post right SSID{"wifi_password": "wrong12345678", "wifi_ssid": "km"}
tohttp://192.168.4.1/wifi
:wlan.status()
always 201...Expected behaviour
Observed behaviour
When reconnect to right SSID with wrong password, the
wlan.status()
should be202
. After testing, it was found that the board may still be connected to the previous SSID(kmx).When
wlan.status()
is201
, I must callwlan.active(False)
immediately. If not do this, the AP will shutdown automatic. But after callwlan.active(False)
, the AP can continue to work.And if connect to right SSID with wrong password at first time(wlan.status() is 202), Then post right SSID and right password, The board can connect successful.
Additional Information
The user's situation is much more complicated when distributing the network. Hope the API behaves as expected. Thanks very much.
The text was updated successfully, but these errors were encountered: