diff --git a/docs/API_reference/en/wifilib/WLAN.md b/docs/API_reference/en/wifilib/WLAN.md index 32a4a75c706df7940fd9f09154ba5374fb48926d..16cd08007779600d6b339040528add0743a37d2c 100644 --- a/docs/API_reference/en/wifilib/WLAN.md +++ b/docs/API_reference/en/wifilib/WLAN.md @@ -615,6 +615,8 @@ Returns an error code, `int` type. | 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 @@ -697,7 +699,7 @@ Returns an error code, `int` type. | 3300 | EVENT_STA_START_CONN | 3301 | Start Connecting to AP | None | | 3300 | EVENT_CONN_SUCCEED | 3302 | Connection to AP Successful | Returns information about the connected AP,`dict` type. `
ssid`: Wireless access point name, `str` type.`
password`: Wireless access point password, `str` type. `
bssid`: Wireless access point MAC address, `str` type. `
channel`: Current channel, `int` type. `
rssi`: Signal strength of the wireless access point, `int` type. `
auth`: Authentication mode, `int` type. `
cipher`: Encryption mode, `int` type. | | 3300 | EVENT_CONN_FAILED | 3303 | Connection to AP Failed | None | -| 3300 | EVENT_CONN_LOST | 3304 | Connection to AP Lost | Returns information about the disconnected AP,`dict` type. `
ssid`: Wireless access point name, `str` type.`
bssid`: Wireless access point MAC address, `str` type.`
reason`: Disconnection reason, `int` type. | +| 3300 | EVENT_CONN_LOST | 3304 | Connection to AP Lost | Returns information about the disconnected AP,`dict` type. `
ssid`: Wireless access point name, `str` type.`
bssid`: Wireless access point MAC address, `str` type.`
reason`: Disconnection reason, `int` type(0 or 1:normal,other:error). | | 3300 | EVENT_GOT_IP | 3305 | IP Obtained | Returns obtained IP information,`tuple` type, format: `(ip, netmask, gateway, primary_dns, secondary_dns)` | | 3300 | EVENT_LOST_IP | 3306 | IP Lost | None | | 3400 | EVENT_NETCFG_START_SUCCEED | 3401 | Network Configuration Start Successful | None | diff --git a/docs/API_reference/zh/wifilib/WLAN.md b/docs/API_reference/zh/wifilib/WLAN.md index 32e26ccc28eae5018570f800bc6b7c80cad99bdd..4d1a7fe60afca5444ebedf5e5559f02c06a53825 100644 --- a/docs/API_reference/zh/wifilib/WLAN.md +++ b/docs/API_reference/zh/wifilib/WLAN.md @@ -614,6 +614,8 @@ WLAN.netcfg(enable=True, type=nic.NETCFG_SMARTCONFIG, timeout=120) | 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身份认证 | ### 加密方式 @@ -696,7 +698,7 @@ WLAN.netcfg(enable=True, type=nic.NETCFG_SMARTCONFIG, timeout=120) | 3300 | EVENT_STA_START_CONN | 3301 | 开始连接AP | None | | 3300 | EVENT_CONN_SUCCEED | 3302 | 连接AP成功 | 返回已连接的AP信息,`dict`类型。 `
ssid`: 无线接入点名称,`str`类型。`
password`: 无线接入点密码,`str`类型。 `
bssid`: 无线接入点MAC地址,`str`类型。 `
channel`: 当前所处信道,`int`类型。 `
rssi`: 无线接入点信号强度,`int`类型。 `
auth`: 认证方式,`int`类型。 `
cipher`: 加密方式,`int`类型。 | | 3300 | EVENT_CONN_FAILED | 3303 | 连接AP失败 | None | -| 3300 | EVENT_CONN_LOST | 3304 | 与AP断开连接 | 返回断开连接的AP信息,`dict`类型。 `
ssid`: 无线接入点名称,`str`类型。`
bssid`: 无线接入点MAC地址,`str`类型。`
reason`: 断连原因,`int`类型。 | +| 3300 | EVENT_CONN_LOST | 3304 | 与AP断开连接 | 返回断开连接的AP信息,`dict`类型。 `
ssid`: 无线接入点名称,`str`类型。`
bssid`: 无线接入点MAC地址,`str`类型。`
reason`: 断连原因,`int`类型(0、1:正常断开,其他:异常)。 | | 3300 | EVENT_GOT_IP | 3305 | 获取到IP | 返回获取到的IP信息,`tuple`类型,格式:`(ip, netmask, gateway, primary_dns, secondary_dns)` | | 3300 | EVENT_LOST_IP | 3306 | IP丢失 | None | | 3400 | EVENT_NETCFG_START_SUCCEED | 3401 | 配网启动成功 | None |