From 0d85ee134e8ce7ce2adcd54ad5b57b16b01990ee Mon Sep 17 00:00:00 2001 From: liujiaojiao Date: Tue, 20 Jun 2023 16:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liujiaojiao --- zh-cn/application-dev/reference/apis/js-apis-wifi.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-wifi.md b/zh-cn/application-dev/reference/apis/js-apis-wifi.md index f9e36545ae..c3b1746f3d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wifi.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wifi.md @@ -680,7 +680,7 @@ try { let rssi = 0; let band = 0; let level = wifi.getSignalLevel(rssi,band); - console.info("lelvel:" + JSON.stringify(lelvel)); + console.info("level:" + JSON.stringify(level)); }catch(error){ console.error("failed:" + JSON.stringify(error)); } @@ -886,7 +886,7 @@ isFeatureSupported(featureId: number): boolean import wifi from '@ohos.wifi'; try { - let featureId = 0; + let featureId = 0; let ret = wifi.isFeatureSupported(featureId); console.info("isFeatureSupported:" + ret); }catch(error){ @@ -1278,10 +1278,10 @@ disableHotspot(): boolean **示例:** ```js -import wifi from '@ohos.wifiManager'; +import wifi from '@ohos.wifi'; try { - wifiManager.disableHotspot(); + wifi.disableHotspot(); }catch(error){ console.error("failed:" + JSON.stringify(error)); } @@ -2043,7 +2043,7 @@ import wifi from '@ohos.wifi'; try { let name = "****"; - wifi.setDeviceName(netId); + wifi.setDeviceName(name); }catch(error){ console.error("failed:" + JSON.stringify(error)); } -- GitLab