diff --git a/docs/API_reference/en/wifilib/WLAN.md b/docs/API_reference/en/wifilib/WLAN.md index 9cc5a389ff750fe221f9075e4bb9b0d5a12ec68a..3bc87fce57f1ace533eaf6438a36a3284aa69f53 100644 --- a/docs/API_reference/en/wifilib/WLAN.md +++ b/docs/API_reference/en/wifilib/WLAN.md @@ -608,13 +608,15 @@ Returns an error code, `int` type. ### Authentication Modes -| Authentication Mode | Value | Description | -| ------------------- | ----- | ----------------------------------------------- | -| AUTH_OPEN | 0 | Open system authentication | -| AUTH_WEP | 1 | Wired Equivalent Privacy (WEP) authentication | -| AUTH_WPA_PSK | 2 | WPA pre-shared key (PSK) authentication | -| AUTH_WPA2_PSK | 3 | WPA2 pre-shared key (PSK) authentication | -| AUTH_WPA_WPA2_PSK | 4 | Mixed mode with WPA and WPA2 PSK authentication | +| Authentication Mode | Value | Description | +| ------------------- | ----- | ------------------------------------------------- | +| AUTH_OPEN | 0 | Open system authentication | +| AUTH_WEP | 1 | Wired Equivalent Privacy (WEP) authentication | +| AUTH_WPA_PSK | 2 | WPA pre-shared key (PSK) authentication | +| AUTH_WPA2_PSK | 3 | WPA2 pre-shared key (PSK) authentication | +| AUTH_WPA_WPA2_PSK | 4 | Mixed mode with WPA and WPA2 PSK authentication | +| AUTH_WPA3_PSK | 5 | WPA3 pre-shared key (PSK) authentication | +| AUTH_WPA2_WPA3_PSK | 6 | Mixed mode with WPA2 and WPA3 PSK authentication | ### Encryption Modes @@ -634,6 +636,16 @@ Returns an error code, `int` type. | NETCFG_WEBCONFIG | 1 | Web configuration | | NETCFG_BLECONFIG | 2 | BLE configuration | +### Reason for STA disconnection + +| Configuration Mode | Value | Description | +| ---------------------- | ----- | --------------- | +| REASON_USER_DISCONNECT | 1 | User disconnect | +| REASON_BEACON_LOST | 2 | Beacon lost | +| REASON_AP_DISCONNECT | 3 | AP disconnect | +| REASON_SCAN_NOT_FOUND | 4 | Scan not found | +| REASON_PWD_ERROR | 5 | password error | + ### Error Codes | Error Code | Value | Description | diff --git a/docs/API_reference/zh/wifilib/WLAN.md b/docs/API_reference/zh/wifilib/WLAN.md index 32e26ccc28eae5018570f800bc6b7c80cad99bdd..f9ab35a839ec3c48c6a5160b648ded543d539943 100644 --- a/docs/API_reference/zh/wifilib/WLAN.md +++ b/docs/API_reference/zh/wifilib/WLAN.md @@ -607,13 +607,15 @@ WLAN.netcfg(enable=True, type=nic.NETCFG_SMARTCONFIG, timeout=120) ### 认证方式 -| 认证方式 | 值 | 说明 | -| ----------------- | -- | ------------------------------------ | -| AUTH_OPEN | 0 | 开放式身份认证 | -| AUTH_WEP | 1 | 有线等效加密身份认证 | -| AUTH_WPA_PSK | 2 | WPA预共享密钥身份认证 | -| AUTH_WPA2_PSK | 3 | WPA2预共享密钥身份认证 | -| AUTH_WPA_WPA2_PSK | 4 | 混合模式,结合WPA和WPA2的PSK身份认证 | +| 认证方式 | 值 | 说明 | +| ------------------ | -- | ------------------------------------- | +| AUTH_OPEN | 0 | 开放式身份认证 | +| AUTH_WEP | 1 | 有线等效加密身份认证 | +| AUTH_WPA_PSK | 2 | WPA预共享密钥身份认证 | +| AUTH_WPA2_PSK | 3 | WPA2预共享密钥身份认证 | +| AUTH_WPA_WPA2_PSK | 4 | 混合模式,结合WPA和WPA2的PSK身份认证 | +| AUTH_WPA3_PSK | 5 | WPA3预共享密钥身份认证 | +| AUTH_WPA2_WPA3_PSK | 6 | 混合模式,结合WPA2和WPA3的PSK身份认证 | ### 加密方式 @@ -633,6 +635,16 @@ WLAN.netcfg(enable=True, type=nic.NETCFG_SMARTCONFIG, timeout=120) | NETCFG_WEBCONFIG | 1 | web配网 | | NETCFG_BLECONFIG | 2 | ble配网 | +### STA断开原因 + +| 配网方式 | 值 | 说明 | +| ---------------------- | -- | ------------------ | +| REASON_USER_DISCONNECT | 1 | 用户主动断开 | +| REASON_BEACON_LOST | 2 | 失去Beacon信号 | +| REASON_AP_DISCONNECT | 3 | 无线接入点主动断开 | +| REASON_SCAN_NOT_FOUND | 4 | 没有找到特定的网络 | +| REASON_PWD_ERROR | 5 | 密码错误 | + ### 错误码 | 错误码 | 说明 | 值 |