Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
514a7c9f
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看板
提交
514a7c9f
编写于
12月 21, 2022
作者:
X
xiaosi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add change log
Signed-off-by:
N
xiaosi
<
xiaosi2@huawei.com
>
上级
581506f8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
6 deletion
+10
-6
zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/changelog-wifi.md
...se-notes/changelogs/OpenHarmony_3.2.8.3/changelog-wifi.md
+10
-6
未找到文件。
zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.
1
/changelog-wifi.md
→
zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.
3
/changelog-wifi.md
浏览文件 @
514a7c9f
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
import wifiManager from '@ohos.wifiManager';
import wifiManager from '@ohos.wifiManager';
**变更影响**
**变更影响**
仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManager才能使用wifi的系统API和API9接口
仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManager才能使用wifi的系统API和API9接口
...
@@ -16,6 +17,7 @@ import wifiManager from '@ohos.wifiManager';
...
@@ -16,6 +17,7 @@ import wifiManager from '@ohos.wifiManager';
对于其他接口无影响
对于其他接口无影响
**关键的接口/组件变更**
**关键的接口/组件变更**
| 类名 | 接口类型 | 接口声明 | 变更类型 |
| 类名 | 接口类型 | 接口声明 | 变更类型 |
...
@@ -71,6 +73,7 @@ import wifiManager from '@ohos.wifiManager';
...
@@ -71,6 +73,7 @@ import wifiManager from '@ohos.wifiManager';
| wifi | enum | export enum WifiSecurityType | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加4种加密类型 |
| wifi | enum | export enum WifiSecurityType | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加4种加密类型 |
| wifi | interface | export interface WifiLinkedInfo | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加MacType参数 |
| wifi | interface | export interface WifiLinkedInfo | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加MacType参数 |
**适配指导(可选,不涉及则可以删除)**
**适配指导(可选,不涉及则可以删除)**
以getLinkedInfo为例,在新版本中需要使用如下方式进行调用:
以getLinkedInfo为例,在新版本中需要使用如下方式进行调用:
...
@@ -80,16 +83,16 @@ import wifiManager from '@ohos.wifiManager'
...
@@ -80,16 +83,16 @@ import wifiManager from '@ohos.wifiManager'
wifiManager.getLinkedInfo((err, data) => {
wifiManager.getLinkedInfo((err, data) => {
if (err) {
if (err) {
console.error("get linked info error");
console.error("get linked info error");
return;
return;
}
}
console.info("get linked info: " + JSON.stringify(data));
console.info("get linked info: " + JSON.stringify(data));
});
});
wifiManager.getLinkedInfo().then(data => {
wifiManager.getLinkedInfo().then(data => {
console.info("get linked info: " + JSON.stringify(data));
console.info("get linked info: " + JSON.stringify(data));
}).catch(error => {
}).catch(error => {
console.info("get linked info error");
console.info("get linked info error");
});
});
```
```
...
@@ -102,6 +105,7 @@ wifiManager.getLinkedInfo().then(data => {
...
@@ -102,6 +105,7 @@ wifiManager.getLinkedInfo().then(data => {
import wifiManagerExt from '@ohos.wifiManagerExt';
import wifiManagerExt from '@ohos.wifiManagerExt';
**变更影响**
**变更影响**
仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManagerExt才能使用wifi的系统API和API9接口,与wifiManager配套使用
仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManagerExt才能使用wifi的系统API和API9接口,与wifiManager配套使用
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录