Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
e67d782c
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e67d782c
编写于
2月 07, 2023
作者:
Y
yanxiaotao@huawei.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add error code in js-apis-wifiManager.md @2023-02-07.
Signed-off-by:
N
yanxiaotao@huawei.com
<
yanxiaotao@huawei.com
>
上级
d23d0f8b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
160 addition
and
107 deletion
+160
-107
zh-cn/application-dev/reference/apis/js-apis-wifiManager.md
zh-cn/application-dev/reference/apis/js-apis-wifiManager.md
+88
-88
zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md
.../application-dev/reference/apis/js-apis-wifiManagerExt.md
+43
-11
zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md
zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md
+29
-8
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-wifiManager.md
浏览文件 @
e67d782c
...
@@ -35,7 +35,7 @@ enableWifi(): void
...
@@ -35,7 +35,7 @@ enableWifi(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.disableWifi<sup>9+</sup>
## wifi.disableWifi<sup>9+</sup>
...
@@ -62,7 +62,7 @@ disableWifi(): void
...
@@ -62,7 +62,7 @@ disableWifi(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.isWifiActive<sup>9+</sup>
## wifi.isWifiActive<sup>9+</sup>
...
@@ -86,7 +86,7 @@ isWifiActive(): boolean
...
@@ -86,7 +86,7 @@ isWifiActive(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.scan<sup>9+</sup>
## wifi.scan<sup>9+</sup>
...
@@ -110,7 +110,7 @@ scan(): void
...
@@ -110,7 +110,7 @@ scan(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getScanResults<sup>9+</sup>
## wifi.getScanResults<sup>9+</sup>
...
@@ -134,7 +134,7 @@ getScanResults(): Promise<Array<WifiScanInfo>>
...
@@ -134,7 +134,7 @@ getScanResults(): Promise<Array<WifiScanInfo>>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getScanResults<sup>9+</sup>
## wifi.getScanResults<sup>9+</sup>
...
@@ -158,7 +158,7 @@ getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void
...
@@ -158,7 +158,7 @@ getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
**示例:**
**示例:**
```
js
```
js
...
@@ -299,7 +299,7 @@ getScanResultsSync(): Array<[WifiScanInfo](#wifiscaninfo)>
...
@@ -299,7 +299,7 @@ getScanResultsSync(): Array<[WifiScanInfo](#wifiscaninfo)>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.addDeviceConfig<sup>9+</sup>
## wifi.addDeviceConfig<sup>9+</sup>
...
@@ -331,7 +331,7 @@ addDeviceConfig(config: WifiDeviceConfig): Promise<number>
...
@@ -331,7 +331,7 @@ addDeviceConfig(config: WifiDeviceConfig): Promise<number>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## WifiDeviceConfig<sup>9+</sup>
## WifiDeviceConfig<sup>9+</sup>
...
@@ -481,7 +481,7 @@ addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>)
...
@@ -481,7 +481,7 @@ addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>)
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.addCandidateConfig<sup>9+</sup>
## wifi.addCandidateConfig<sup>9+</sup>
...
@@ -511,7 +511,7 @@ addCandidateConfig(config: WifiDeviceConfig): Promise<number>
...
@@ -511,7 +511,7 @@ addCandidateConfig(config: WifiDeviceConfig): Promise<number>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.addCandidateConfig<sup>9+</sup>
## wifi.addCandidateConfig<sup>9+</sup>
...
@@ -536,7 +536,7 @@ addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number&g
...
@@ -536,7 +536,7 @@ addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number&g
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.removeCandidateConfig<sup>9+</sup>
## wifi.removeCandidateConfig<sup>9+</sup>
...
@@ -566,7 +566,7 @@ removeCandidateConfig(networkId: number): Promise<void>
...
@@ -566,7 +566,7 @@ removeCandidateConfig(networkId: number): Promise<void>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.removeCandidateConfig<sup>9+</sup>
## wifi.removeCandidateConfig<sup>9+</sup>
...
@@ -591,7 +591,7 @@ removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): v
...
@@ -591,7 +591,7 @@ removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): v
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getCandidateConfigs<sup>9+</sup>
## wifi.getCandidateConfigs<sup>9+</sup>
...
@@ -615,7 +615,7 @@ getCandidateConfigs(): Array<[WifiDeviceConfig](#wifideviceconfig)>
...
@@ -615,7 +615,7 @@ getCandidateConfigs(): Array<[WifiDeviceConfig](#wifideviceconfig)>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.connectToCandidateConfig<sup>9+</sup>
## wifi.connectToCandidateConfig<sup>9+</sup>
...
@@ -639,8 +639,8 @@ connectToCandidateConfig(networkId: number): void
...
@@ -639,8 +639,8 @@ connectToCandidateConfig(networkId: number): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.connectToNetwork<sup>9+</sup>
## wifi.connectToNetwork<sup>9+</sup>
...
@@ -666,8 +666,8 @@ connectToNetwork(networkId: number): void
...
@@ -666,8 +666,8 @@ connectToNetwork(networkId: number): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.connectToDevice<sup>9+</sup>
## wifi.connectToDevice<sup>9+</sup>
...
@@ -694,8 +694,8 @@ connectToDevice(config: WifiDeviceConfig): void
...
@@ -694,8 +694,8 @@ connectToDevice(config: WifiDeviceConfig): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.disconnect<sup>9+</sup>
## wifi.disconnect<sup>9+</sup>
...
@@ -716,7 +716,7 @@ disconnect(): void
...
@@ -716,7 +716,7 @@ disconnect(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getSignalLevel<sup>9+</sup>
## wifi.getSignalLevel<sup>9+</sup>
...
@@ -747,7 +747,7 @@ getSignalLevel(rssi: number, band: number): number
...
@@ -747,7 +747,7 @@ getSignalLevel(rssi: number, band: number): number
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getLinkedInfo<sup>9+</sup>
## wifi.getLinkedInfo<sup>9+</sup>
...
@@ -771,8 +771,8 @@ getLinkedInfo(): Promise<WifiLinkedInfo>
...
@@ -771,8 +771,8 @@ getLinkedInfo(): Promise<WifiLinkedInfo>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.getLinkedInfo<sup>9+</sup>
## wifi.getLinkedInfo<sup>9+</sup>
...
@@ -796,8 +796,8 @@ getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void
...
@@ -796,8 +796,8 @@ getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
**示例:**
**示例:**
```
js
```
js
...
@@ -909,7 +909,7 @@ isConnected(): boolean
...
@@ -909,7 +909,7 @@ isConnected(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getSupportedFeatures<sup>9+</sup>
## wifi.getSupportedFeatures<sup>9+</sup>
...
@@ -950,7 +950,7 @@ getSupportedFeatures(): number
...
@@ -950,7 +950,7 @@ getSupportedFeatures(): number
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2401000 | Operation failed
。
|
| 2401000 | Operation failed
.
|
## wifi.isFeatureSupported<sup>9+</sup>
## wifi.isFeatureSupported<sup>9+</sup>
...
@@ -981,7 +981,7 @@ isFeatureSupported(featureId: number): boolean
...
@@ -981,7 +981,7 @@ isFeatureSupported(featureId: number): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2401000 | Operation failed
。
|
| 2401000 | Operation failed
.
|
## wifi.getDeviceMacAddress<sup>9+</sup>
## wifi.getDeviceMacAddress<sup>9+</sup>
...
@@ -1007,7 +1007,7 @@ getDeviceMacAddress(): string[]
...
@@ -1007,7 +1007,7 @@ getDeviceMacAddress(): string[]
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.getIpInfo<sup>9+</sup>
## wifi.getIpInfo<sup>9+</sup>
...
@@ -1031,7 +1031,7 @@ getIpInfo(): IpInfo
...
@@ -1031,7 +1031,7 @@ getIpInfo(): IpInfo
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## IpInfo<sup>9+</sup>
## IpInfo<sup>9+</sup>
...
@@ -1072,7 +1072,7 @@ getCountryCode(): string
...
@@ -1072,7 +1072,7 @@ getCountryCode(): string
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2401000 | Operation failed
。
|
| 2401000 | Operation failed
.
|
## wifi.reassociate<sup>9+</sup>
## wifi.reassociate<sup>9+</sup>
...
@@ -1092,8 +1092,8 @@ reassociate(): void
...
@@ -1092,8 +1092,8 @@ reassociate(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.reconnect<sup>9+</sup>
## wifi.reconnect<sup>9+</sup>
...
@@ -1113,8 +1113,8 @@ reconnect(): void
...
@@ -1113,8 +1113,8 @@ reconnect(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
| 2501001 | Wifi is closed
。
|
| 2501001 | Wifi is closed
.
|
## wifi.getDeviceConfigs<sup>9+</sup>
## wifi.getDeviceConfigs<sup>9+</sup>
...
@@ -1140,7 +1140,7 @@ getDeviceConfigs(): Array<[WifiDeviceConfig](#wifideviceconfig)>
...
@@ -1140,7 +1140,7 @@ getDeviceConfigs(): Array<[WifiDeviceConfig](#wifideviceconfig)>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.updateNetwork<sup>9+</sup>
## wifi.updateNetwork<sup>9+</sup>
...
@@ -1172,7 +1172,7 @@ updateNetwork(config: WifiDeviceConfig): number
...
@@ -1172,7 +1172,7 @@ updateNetwork(config: WifiDeviceConfig): number
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.disableNetwork<sup>9+</sup>
## wifi.disableNetwork<sup>9+</sup>
...
@@ -1198,7 +1198,7 @@ disableNetwork(netId: number): void
...
@@ -1198,7 +1198,7 @@ disableNetwork(netId: number): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.removeAllNetwork<sup>9+</sup>
## wifi.removeAllNetwork<sup>9+</sup>
...
@@ -1218,7 +1218,7 @@ removeAllNetwork(): void
...
@@ -1218,7 +1218,7 @@ removeAllNetwork(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.removeDevice<sup>9+</sup>
## wifi.removeDevice<sup>9+</sup>
...
@@ -1244,7 +1244,7 @@ removeDevice(id: number): void
...
@@ -1244,7 +1244,7 @@ removeDevice(id: number): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.enableHotspot<sup>9+</sup>
## wifi.enableHotspot<sup>9+</sup>
...
@@ -1264,7 +1264,7 @@ enableHotspot(): void
...
@@ -1264,7 +1264,7 @@ enableHotspot(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.disableHotspot<sup>9+</sup>
## wifi.disableHotspot<sup>9+</sup>
...
@@ -1284,7 +1284,7 @@ disableHotspot(): void
...
@@ -1284,7 +1284,7 @@ disableHotspot(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.isHotspotDualBandSupported<sup>9+</sup>
## wifi.isHotspotDualBandSupported<sup>9+</sup>
...
@@ -1302,7 +1302,7 @@ isHotspotDualBandSupported(): boolean
...
@@ -1302,7 +1302,7 @@ isHotspotDualBandSupported(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| boolean | true:支持,
false:不支持
。
|
| boolean | true:支持,
false:不支持
.
|
**错误码:**
**错误码:**
...
@@ -1310,7 +1310,7 @@ isHotspotDualBandSupported(): boolean
...
@@ -1310,7 +1310,7 @@ isHotspotDualBandSupported(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.isHotspotActive<sup>9+</sup>
## wifi.isHotspotActive<sup>9+</sup>
...
@@ -1328,7 +1328,7 @@ isHotspotActive(): boolean
...
@@ -1328,7 +1328,7 @@ isHotspotActive(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| boolean | true:已使能,
false:未使能
。
|
| boolean | true:已使能,
false:未使能
.
|
**错误码:**
**错误码:**
...
@@ -1336,7 +1336,7 @@ isHotspotActive(): boolean
...
@@ -1336,7 +1336,7 @@ isHotspotActive(): boolean
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.setHotspotConfig<sup>9+</sup>
## wifi.setHotspotConfig<sup>9+</sup>
...
@@ -1362,7 +1362,7 @@ setHotspotConfig(config: HotspotConfig): void
...
@@ -1362,7 +1362,7 @@ setHotspotConfig(config: HotspotConfig): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## HotspotConfig<sup>9+</sup>
## HotspotConfig<sup>9+</sup>
...
@@ -1405,7 +1405,7 @@ getHotspotConfig(): HotspotConfig
...
@@ -1405,7 +1405,7 @@ getHotspotConfig(): HotspotConfig
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.getStations<sup>9+</sup>
## wifi.getStations<sup>9+</sup>
...
@@ -1431,7 +1431,7 @@ getStations(): Array<[StationInfo](#stationinfo9)>
...
@@ -1431,7 +1431,7 @@ getStations(): Array<[StationInfo](#stationinfo9)>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## StationInfo<sup>9+</sup>
## StationInfo<sup>9+</sup>
...
@@ -1470,7 +1470,7 @@ getP2pLinkedInfo(): Promise<WifiP2pLinkedInfo>
...
@@ -1470,7 +1470,7 @@ getP2pLinkedInfo(): Promise<WifiP2pLinkedInfo>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## WifiP2pLinkedInfo<sup>9+</sup>
## WifiP2pLinkedInfo<sup>9+</sup>
...
@@ -1536,7 +1536,7 @@ getCurrentGroup(): Promise<WifiP2pGroupInfo>
...
@@ -1536,7 +1536,7 @@ getCurrentGroup(): Promise<WifiP2pGroupInfo>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.getCurrentGroup<sup>9+</sup>
## wifi.getCurrentGroup<sup>9+</sup>
...
@@ -1560,7 +1560,7 @@ getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void
...
@@ -1560,7 +1560,7 @@ getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.getP2pPeerDevices<sup>9+</sup>
## wifi.getP2pPeerDevices<sup>9+</sup>
...
@@ -1584,7 +1584,7 @@ getP2pPeerDevices(): Promise<WifiP2pDevice[]>
...
@@ -1584,7 +1584,7 @@ getP2pPeerDevices(): Promise<WifiP2pDevice[]>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.getP2pPeerDevices<sup>9+</sup>
## wifi.getP2pPeerDevices<sup>9+</sup>
...
@@ -1608,7 +1608,7 @@ getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void
...
@@ -1608,7 +1608,7 @@ getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## WifiP2pDevice<sup>9+</sup>
## WifiP2pDevice<sup>9+</sup>
...
@@ -1662,7 +1662,7 @@ getP2pLocalDevice(): Promise<WifiP2pDevice>
...
@@ -1662,7 +1662,7 @@ getP2pLocalDevice(): Promise<WifiP2pDevice>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.getP2pLocalDevice<sup>9+</sup>
## wifi.getP2pLocalDevice<sup>9+</sup>
...
@@ -1703,7 +1703,7 @@ createGroup(config: WifiP2PConfig): void
...
@@ -1703,7 +1703,7 @@ createGroup(config: WifiP2PConfig): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## WifiP2PConfig<sup>9+</sup>
## WifiP2PConfig<sup>9+</sup>
...
@@ -1749,7 +1749,7 @@ removeGroup(): void
...
@@ -1749,7 +1749,7 @@ removeGroup(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.p2pConnect<sup>9+</sup>
## wifi.p2pConnect<sup>9+</sup>
...
@@ -1774,7 +1774,7 @@ p2pConnect(config: WifiP2PConfig): void
...
@@ -1774,7 +1774,7 @@ p2pConnect(config: WifiP2PConfig): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
**示例:**
**示例:**
```
js
```
js
...
@@ -1859,7 +1859,7 @@ p2pCancelConnect(): void
...
@@ -1859,7 +1859,7 @@ p2pCancelConnect(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.startDiscoverDevices<sup>9+</sup>
## wifi.startDiscoverDevices<sup>9+</sup>
...
@@ -1877,7 +1877,7 @@ startDiscoverDevices(): void
...
@@ -1877,7 +1877,7 @@ startDiscoverDevices(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.stopDiscoverDevices<sup>9+</sup>
## wifi.stopDiscoverDevices<sup>9+</sup>
...
@@ -1895,7 +1895,7 @@ stopDiscoverDevices(): void
...
@@ -1895,7 +1895,7 @@ stopDiscoverDevices(): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.deletePersistentGroup<sup>9+</sup>
## wifi.deletePersistentGroup<sup>9+</sup>
...
@@ -1922,7 +1922,7 @@ deletePersistentGroup(netId: number): void
...
@@ -1922,7 +1922,7 @@ deletePersistentGroup(netId: number): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.getP2pGroups<sup>9+</sup>
## wifi.getP2pGroups<sup>9+</sup>
...
@@ -1948,7 +1948,7 @@ getP2pGroups(): Promise<Array<WifiP2pGroupInfo>>
...
@@ -1948,7 +1948,7 @@ getP2pGroups(): Promise<Array<WifiP2pGroupInfo>>
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## WifiP2pGroupInfo<sup>9+</sup>
## WifiP2pGroupInfo<sup>9+</sup>
...
@@ -1993,7 +1993,7 @@ getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void
...
@@ -1993,7 +1993,7 @@ getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.setDeviceName<sup>9+</sup>
## wifi.setDeviceName<sup>9+</sup>
...
@@ -2019,7 +2019,7 @@ setDeviceName(devName: string): void
...
@@ -2019,7 +2019,7 @@ setDeviceName(devName: string): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('wifiStateChange')<sup>9+</sup>
## wifi.on('wifiStateChange')<sup>9+</sup>
...
@@ -2044,7 +2044,7 @@ on(type: "wifiStateChange", callback: Callback<number>): void
...
@@ -2044,7 +2044,7 @@ on(type: "wifiStateChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
**状态改变事件的枚举:**
**状态改变事件的枚举:**
...
@@ -2079,7 +2079,7 @@ off(type: "wifiStateChange", callback?: Callback<number>): void
...
@@ -2079,7 +2079,7 @@ off(type: "wifiStateChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
**示例:**
**示例:**
```
js
```
js
...
@@ -2127,7 +2127,7 @@ on(type: "wifiConnectionChange", callback: Callback<number>): void
...
@@ -2127,7 +2127,7 @@ on(type: "wifiConnectionChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.off('wifiConnectionChange')<sup>9+</sup>
## wifi.off('wifiConnectionChange')<sup>9+</sup>
...
@@ -2152,7 +2152,7 @@ off(type: "wifiConnectionChange", callback?: Callback<number>): void
...
@@ -2152,7 +2152,7 @@ off(type: "wifiConnectionChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.on('wifiScanStateChange')<sup>9+</sup>
## wifi.on('wifiScanStateChange')<sup>9+</sup>
...
@@ -2184,7 +2184,7 @@ on(type: "wifiScanStateChange", callback: Callback<number>): void
...
@@ -2184,7 +2184,7 @@ on(type: "wifiScanStateChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.off('wifiScanStateChange')<sup>9+</sup>
## wifi.off('wifiScanStateChange')<sup>9+</sup>
...
@@ -2209,7 +2209,7 @@ off(type: "wifiScanStateChange", callback?: Callback<number>): void
...
@@ -2209,7 +2209,7 @@ off(type: "wifiScanStateChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.on('wifiRssiChange')<sup>9+</sup>
## wifi.on('wifiRssiChange')<sup>9+</sup>
...
@@ -2234,7 +2234,7 @@ on(type: "wifiRssiChange", callback: Callback<number>): void
...
@@ -2234,7 +2234,7 @@ on(type: "wifiRssiChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.off('wifiRssiChange')<sup>9+</sup>
## wifi.off('wifiRssiChange')<sup>9+</sup>
...
@@ -2259,7 +2259,7 @@ off(type: "wifiRssiChange", callback?: Callback<number>): void
...
@@ -2259,7 +2259,7 @@ off(type: "wifiRssiChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2501000 | Operation failed
。
|
| 2501000 | Operation failed
.
|
## wifi.on('hotspotStateChange')<sup>9+</sup>
## wifi.on('hotspotStateChange')<sup>9+</sup>
...
@@ -2293,7 +2293,7 @@ on(type: "hotspotStateChange", callback: Callback<number>): void
...
@@ -2293,7 +2293,7 @@ on(type: "hotspotStateChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.off('hotspotStateChange')<sup>9+</sup>
## wifi.off('hotspotStateChange')<sup>9+</sup>
...
@@ -2318,7 +2318,7 @@ off(type: "hotspotStateChange", callback?: Callback<number>): void
...
@@ -2318,7 +2318,7 @@ off(type: "hotspotStateChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2601000 | Operation failed
。
|
| 2601000 | Operation failed
.
|
## wifi.on('p2pStateChange')<sup>9+</sup>
## wifi.on('p2pStateChange')<sup>9+</sup>
...
@@ -2353,7 +2353,7 @@ on(type: "p2pStateChange", callback: Callback<number>): void
...
@@ -2353,7 +2353,7 @@ on(type: "p2pStateChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pStateChange')<sup>9+</sup>
## wifi.off('p2pStateChange')<sup>9+</sup>
...
@@ -2378,7 +2378,7 @@ off(type: "p2pStateChange", callback?: Callback<number>): void
...
@@ -2378,7 +2378,7 @@ off(type: "p2pStateChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('p2pConnectionChange')
<sup>
9+
</sup>
## wifi.on('p2pConnectionChange')
<sup>
9+
</sup>
...
@@ -2403,7 +2403,7 @@ on(type: "p2pConnectionChange", callback: Callback<WifiP2pLinkedInfo>): vo
...
@@ -2403,7 +2403,7 @@ on(type: "p2pConnectionChange", callback: Callback<WifiP2pLinkedInfo>): vo
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pConnectionChange')<sup>9+</sup>
## wifi.off('p2pConnectionChange')<sup>9+</sup>
...
@@ -2428,7 +2428,7 @@ off(type: "p2pConnectionChange", callback?: Callback<WifiP2pLinkedInfo>):
...
@@ -2428,7 +2428,7 @@ off(type: "p2pConnectionChange", callback?: Callback<WifiP2pLinkedInfo>):
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('p2pDeviceChange')<sup>9+</sup>
## wifi.on('p2pDeviceChange')<sup>9+</sup>
...
@@ -2453,7 +2453,7 @@ on(type: "p2pDeviceChange", callback: Callback<WifiP2pDevice>): void
...
@@ -2453,7 +2453,7 @@ on(type: "p2pDeviceChange", callback: Callback<WifiP2pDevice>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pDeviceChange')<sup>9+</sup>
## wifi.off('p2pDeviceChange')<sup>9+</sup>
...
@@ -2478,7 +2478,7 @@ off(type: "p2pDeviceChange", callback?: Callback<WifiP2pDevice>): void
...
@@ -2478,7 +2478,7 @@ off(type: "p2pDeviceChange", callback?: Callback<WifiP2pDevice>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('p2pPeerDeviceChange')<sup>9+</sup>
## wifi.on('p2pPeerDeviceChange')<sup>9+</sup>
...
@@ -2503,7 +2503,7 @@ on(type: "p2pPeerDeviceChange", callback: Callback<WifiP2pDevice[]>): void
...
@@ -2503,7 +2503,7 @@ on(type: "p2pPeerDeviceChange", callback: Callback<WifiP2pDevice[]>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pPeerDeviceChange')<sup>9+</sup>
## wifi.off('p2pPeerDeviceChange')<sup>9+</sup>
...
@@ -2528,7 +2528,7 @@ off(type: "p2pPeerDeviceChange", callback?: Callback<WifiP2pDevice[]>): vo
...
@@ -2528,7 +2528,7 @@ off(type: "p2pPeerDeviceChange", callback?: Callback<WifiP2pDevice[]>): vo
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('p2pPersistentGroupChange')<sup>9+</sup>
## wifi.on('p2pPersistentGroupChange')<sup>9+</sup>
...
@@ -2553,7 +2553,7 @@ on(type: "p2pPersistentGroupChange", callback: Callback<void>): void
...
@@ -2553,7 +2553,7 @@ on(type: "p2pPersistentGroupChange", callback: Callback<void>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pPersistentGroupChange')<sup>9+</sup>
## wifi.off('p2pPersistentGroupChange')<sup>9+</sup>
...
@@ -2578,7 +2578,7 @@ off(type: "p2pPersistentGroupChange", callback?: Callback<void>): void
...
@@ -2578,7 +2578,7 @@ off(type: "p2pPersistentGroupChange", callback?: Callback<void>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.on('p2pDiscoveryChange')<sup>9+</sup>
## wifi.on('p2pDiscoveryChange')<sup>9+</sup>
...
@@ -2610,7 +2610,7 @@ on(type: "p2pDiscoveryChange", callback: Callback<number>): void
...
@@ -2610,7 +2610,7 @@ on(type: "p2pDiscoveryChange", callback: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
## wifi.off('p2pDiscoveryChange')<sup>9+</sup>
## wifi.off('p2pDiscoveryChange')<sup>9+</sup>
...
@@ -2635,4 +2635,4 @@ off(type: "p2pDiscoveryChange", callback?: Callback<number>): void
...
@@ -2635,4 +2635,4 @@ off(type: "p2pDiscoveryChange", callback?: Callback<number>): void
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| 2801000 | Operation failed
。
|
| 2801000 | Operation failed
.
|
zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md
浏览文件 @
e67d782c
...
@@ -22,12 +22,13 @@ enableHotspot(): boolean;
...
@@ -22,12 +22,13 @@ enableHotspot(): boolean;
**系统能力:**
SystemCapability.Communication.WiFi.AP.Extension
**系统能力:**
SystemCapability.Communication.WiFi.AP.Extension
**
返回值
:**
**
错误码
:**
|
**类型**
|
**说明**
|
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
| -------- | -------- |
| boolean | 操作结果, true: 成功, false: 失败。 |
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.disableHotspot
## wifiext.disableHotspot
...
@@ -39,12 +40,13 @@ disableHotspot(): boolean;
...
@@ -39,12 +40,13 @@ disableHotspot(): boolean;
**系统能力:**
SystemCapability.Communication.WiFi.AP.Extension
**系统能力:**
SystemCapability.Communication.WiFi.AP.Extension
**
返回值
:**
**
错误码
:**
|
**类型**
|
**说明**
|
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
| -------- | -------- |
| boolean | 操作结果, true: 成功, false: 失败。 |
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getSupportedPowerModel
## wifiext.getSupportedPowerModel
...
@@ -62,6 +64,13 @@ getSupportedPowerModel(): Promise<Array<PowerModel>>
...
@@ -62,6 +64,13 @@ getSupportedPowerModel(): Promise<Array<PowerModel>>
| -------- | -------- |
| -------- | -------- |
| Promise
<
Array
<
[PowerModel](#powermodel)
>>
| Promise对象。表示功率模式。 |
| Promise
<
Array
<
[PowerModel](#powermodel)
>>
| Promise对象。表示功率模式。 |
**错误码:**
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## PowerModel
## PowerModel
...
@@ -92,6 +101,13 @@ getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>):
...
@@ -92,6 +101,13 @@ getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>):
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback
<
Array
<
[PowerModel](#powermodel)
>>
| 是 | 回调函数。当操作成功时,err为0,data表示支持的功率模式。如果error为非0,表示处理出现错误。 |
| callback | AsyncCallback
<
Array
<
[PowerModel](#powermodel)
>>
| 是 | 回调函数。当操作成功时,err为0,data表示支持的功率模式。如果error为非0,表示处理出现错误。 |
**错误码:**
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getPowerModel
## wifiext.getPowerModel
...
@@ -109,6 +125,13 @@ getPowerModel(): Promise<PowerModel>
...
@@ -109,6 +125,13 @@ getPowerModel(): Promise<PowerModel>
| -------- | -------- |
| -------- | -------- |
| Promise
<
[PowerModel](#powermodel)
>
| Promise对象。表示功率模式。 |
| Promise
<
[PowerModel](#powermodel)
>
| Promise对象。表示功率模式。 |
**错误码:**
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.getPowerModel
## wifiext.getPowerModel
...
@@ -126,6 +149,13 @@ getPowerModel(callback: AsyncCallback<PowerModel>): void
...
@@ -126,6 +149,13 @@ getPowerModel(callback: AsyncCallback<PowerModel>): void
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback
<
[PowerModel](#powermodel)
>
| 是 | 回调函数。当操作成功时,err为0,data表示功率模式。如果error为非0,表示处理出现错误。 |
| callback | AsyncCallback
<
[PowerModel](#powermodel)
>
| 是 | 回调函数。当操作成功时,err为0,data表示功率模式。如果error为非0,表示处理出现错误。 |
**错误码:**
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
|
**类型**
|
**说明**
|
| -------- | -------- |
| 2701000 | Operation failed.|
## wifiext.setPowerModel
## wifiext.setPowerModel
...
@@ -143,8 +173,10 @@ setPowerModel(model: PowerModel) : boolean;
...
@@ -143,8 +173,10 @@ setPowerModel(model: PowerModel) : boolean;
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| model |
[
PowerModel
](
#powermodel
)
| 是 | 功率模式。 |
| model |
[
PowerModel
](
#powermodel
)
| 是 | 功率模式。 |
**返回值:**
**错误码:**
以下错误码的详细介绍请参见
[
WIFI错误码
](
../errorcodes/errorcode-wifi.md
)
。
|
**类型**
|
**说明**
|
|
**类型**
|
**说明**
|
| -------- | -------- |
| -------- | -------- |
| boolean | 操作结果, true: 成功, false: 失败。
|
| 2701000 | Operation failed.
|
zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md
浏览文件 @
e67d782c
...
@@ -40,7 +40,7 @@ WIFI服务内部执行STA相关操作时出现未知错误。
...
@@ -40,7 +40,7 @@ WIFI服务内部执行STA相关操作时出现未知错误。
**处理步骤**
**处理步骤**
1.
重新执行打开或关闭WIFI。
1.
重新执行打开或关闭WIFI。
2.
重新执行打开或关闭WIFI,或
重启设备。
2.
仍然无法恢复时
重启设备。
## 2501001 STA功能未打开
## 2501001 STA功能未打开
...
@@ -54,13 +54,13 @@ WIFI STA功能被关闭。
...
@@ -54,13 +54,13 @@ WIFI STA功能被关闭。
**可能原因**
**可能原因**
1.
WIFI功能被关闭。
WIFI功能被关闭。
**处理步骤**
**处理步骤**
1.
打开WIFI功能。
打开WIFI功能。
## 2601000
AP
模块异常
## 2601000
Hotspot
模块异常
**错误信息**
**错误信息**
...
@@ -78,8 +78,29 @@ WIFI服务内部执行Hotspot相关操作时出现未知错误。
...
@@ -78,8 +78,29 @@ WIFI服务内部执行Hotspot相关操作时出现未知错误。
**处理步骤**
**处理步骤**
1.
重新执行打开或关闭WIFI热点功能。
1.
重新执行打开或关闭WIFI Hotspot功能。
2.
重新执行打开或关闭WIFI热点功能,或重启设备。
2.
仍然无法恢复时重启设备。
## 2701000 AP扩展模块异常
**错误信息**
Operation failed.
**错误描述**
WIFI服务内部执行Hotspot相关操作时出现未知错误。
**可能原因**
1.
和WIFI服务建立通信异常。
2.
WIFI芯片通信异常。
3.
其他未知错误。
**处理步骤**
1.
重新执行打开或关闭WIFI Hotspot功能。
2.
仍然无法恢复时重启设备。
## 2801000 P2P模块异常
## 2801000 P2P模块异常
...
@@ -99,6 +120,6 @@ WIFI服务内部执行P2P相关操作时出现未知错误。
...
@@ -99,6 +120,6 @@ WIFI服务内部执行P2P相关操作时出现未知错误。
**处理步骤**
**处理步骤**
1.
重新执行打开或关闭WIFI。
1.
重新执行打开或关闭WIFI
功能
。
2.
重新执行打开或关闭WIFI,或
重启设备。
2.
仍然无法恢复时
重启设备。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录