diff options
| author | Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com> | 2023-11-09 16:18:39 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-11-23 12:11:42 +1100 |
| commit | d6154925d5340e1fb3b2db073bd343da1154f163 (patch) | |
| tree | 4d535e1d8447d283b05a513153753c296ba64cca /py | |
| parent | 960eef70e8a0073440d6d7edc2c05f6e2237e0af (diff) | |
esp32/network_wlan: Fix network.WLAN.status() to return better info.
Prior to this change, after calling connect() the status() method for the
STA interface would either return STAT_GOT_IP or STAT_CONNECTION. The
latter would be returned because wifi_sta_connect_requested==true and
conf_wifi_sta_reconnects==0 by default. As such there was no way to know
anything about errors when attempting to connect, such as a bad password.
Now, status() can return STAT_NO_AP_FOUND and STAT_WRONG_PASSWORD when
those conditions are met.
Fixes issue #12930.
Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions
