提交 61482162 编写于 作者: Y yanxiaotao@huawei.com

update wifiManager.md @2023-03-11.

Signed-off-by: Nyanxiaotao@huawei.com <yanxiaotao@huawei.com>
上级 8184f07a
...@@ -408,6 +408,8 @@ IP配置信息。 ...@@ -408,6 +408,8 @@ IP配置信息。
| caCertAliases | string | 是 | 否 | CA 证书别名。 | | caCertAliases | string | 是 | 否 | CA 证书别名。 |
| caPath | string | 是 | 否 | CA 证书路径。 | | caPath | string | 是 | 否 | CA 证书路径。 |
| clientCertAliases | string | 是 | 否 | 客户端证书别名。 | | clientCertAliases | string | 是 | 否 | 客户端证书别名。 |
| certEntry | Uint8Array | 是 | 是 | CA 证书内容。 |
| certPassword | string | 是 | 是 | CA证书密码。 |
| altSubjectMatch | string | 是 | 否 | 替代主题匹配。 | | altSubjectMatch | string | 是 | 否 | 替代主题匹配。 |
| domainSuffixMatch | string | 是 | 否 | 域后缀匹配。 | | domainSuffixMatch | string | 是 | 否 | 域后缀匹配。 |
| realm | string | 是 | 否 | 通行证凭证的领域。 | | realm | string | 是 | 否 | 通行证凭证的领域。 |
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
import wifiManagerExt from '@ohos.wifiManagerExt'; import wifiManagerExt from '@ohos.wifiManagerExt';
``` ```
## wifiext.enableHotspot ## wifiext.enableHotspot<sup>9+</sup>
enableHotspot(): boolean; enableHotspot(): void;
使能WLAN热点。 使能WLAN热点。
...@@ -30,9 +30,9 @@ enableHotspot(): boolean; ...@@ -30,9 +30,9 @@ enableHotspot(): boolean;
| -------- | -------- | | -------- | -------- |
| 2701000 | Operation failed.| | 2701000 | Operation failed.|
## wifiext.disableHotspot ## wifiext.disableHotspot<sup>9+</sup>
disableHotspot(): boolean; disableHotspot(): void;
去使能WLAN热点。 去使能WLAN热点。
...@@ -48,7 +48,7 @@ disableHotspot(): boolean; ...@@ -48,7 +48,7 @@ disableHotspot(): boolean;
| -------- | -------- | | -------- | -------- |
| 2701000 | Operation failed.| | 2701000 | Operation failed.|
## wifiext.getSupportedPowerModel ## wifiext.getSupportedPowerModel<sup>9+</sup>
getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt; getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt;
...@@ -85,9 +85,9 @@ getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt; ...@@ -85,9 +85,9 @@ getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt;
| THROUGH_WALL | 2 | 穿墙模式。 | | THROUGH_WALL | 2 | 穿墙模式。 |
## wifiext.getSupportedPowerModel ## wifiext.getSupportedPowerMode<sup>9+</sup>
getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): void getSupportedPowerMode(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): void
获取支持的功率模式,使用callback异步回调。 获取支持的功率模式,使用callback异步回调。
...@@ -109,9 +109,9 @@ getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): ...@@ -109,9 +109,9 @@ getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;):
| -------- | -------- | | -------- | -------- |
| 2701000 | Operation failed.| | 2701000 | Operation failed.|
## wifiext.getPowerModel ## wifiext.getPowerMode<sup>9+</sup>
getPowerModel(): Promise&lt;PowerModel&gt; getPowerMode(): Promise&lt;PowerModel&gt;
获取功率模式,使用Promise异步回调。 获取功率模式,使用Promise异步回调。
...@@ -133,9 +133,9 @@ getPowerModel(): Promise&lt;PowerModel&gt; ...@@ -133,9 +133,9 @@ getPowerModel(): Promise&lt;PowerModel&gt;
| -------- | -------- | | -------- | -------- |
| 2701000 | Operation failed.| | 2701000 | Operation failed.|
## wifiext.getPowerModel ## wifiext.getPowerMode<sup>9+</sup>
getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void getPowerMode(callback: AsyncCallback&lt;PowerModel&gt;): void
获取功率模式,使用callback异步回调。 获取功率模式,使用callback异步回调。
...@@ -157,9 +157,9 @@ getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void ...@@ -157,9 +157,9 @@ getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void
| -------- | -------- | | -------- | -------- |
| 2701000 | Operation failed.| | 2701000 | Operation failed.|
## wifiext.setPowerModel ## wifiext.setPowerMode<sup>9+</sup>
setPowerModel(model: PowerModel) : boolean; setPowerMode(model: PowerModel) : boolean;
设置功率模式。 设置功率模式。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册