From f2e1ddef44a503eee91c423f4afba8a240cfe61c Mon Sep 17 00:00:00 2001 From: "bob.xian" Date: Sun, 12 Nov 2023 11:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9WLAN.md=E4=B8=AD=E7=9A=84key?= =?UTF-8?q?=E4=B8=BApassword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/API_reference/zh/wifilib/WLAN.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/API_reference/zh/wifilib/WLAN.md b/docs/API_reference/zh/wifilib/WLAN.md index 47972382..f047fa36 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 +``` -- Gitee