diff --git a/docs/API_reference/zh/wifilib/WLAN.md b/docs/API_reference/zh/wifilib/WLAN.md index 47972382d810f02c1e74a182492aa33d4b5ced7e..f047fa36edfe08cdaa44702ceadccc33fe764410 100644 --- a/docs/API_reference/zh/wifilib/WLAN.md +++ b/docs/API_reference/zh/wifilib/WLAN.md @@ -49,7 +49,7 @@ class network.WLAN(interface_id) import network nic = network.WLAN(network.STA_IF) -nic.connect('your-ssid', 'your-key') +nic.connect('your-ssid', 'your-password') nic.status() ``` @@ -73,7 +73,7 @@ WLAN.active([is_active]) ### `WLAN.connect` ```python -WLAN.connect(ssid=None, key=None, bssid=None) +WLAN.connect(ssid=None, password=None, bssid=None) ``` 连接指定无线网络 @@ -180,7 +180,7 @@ WLAN.config(param=value) | `channel`| `int` | 无线信道号 | | `hidden` | `bool` | 是否可见 | | `security` | `enum` | 加密方式 | -| `key` | `str` | 密码 | +| `password` | `str` | 密码 | **示例:** 配置信息查询: @@ -221,4 +221,4 @@ nic.ifconfig() 设置ip信息: ```python nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8')) -``` \ No newline at end of file +```