未验证 提交 c8458123 编写于 作者: O openharmony_ci 提交者: Gitee

!21080 bluetooth 示例代码修改

Merge pull request !21080 from lverpeng/master
......@@ -2164,7 +2164,7 @@ try {
let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
let setRet = a2dpSrc.setConnectionStrategy("XX:XX:XX:XX:XX:XX", 1).then((data) => {
console.info("setConnectionStrategy");
}, (error) => {
}, err => {
console.error("setConnectionStrategy errCode: " + err.code + ", errMessage: " + err.message);
});
} catch (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册