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

!15914 【示例代码修改】 system.bluetooth.dts修改 cherry pick至monthly

Merge pull request !15914 from huxiaokai/cherry-pick-1678680143
......@@ -42,7 +42,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.startBLEScan success.');
},
fail(code, data) {
console.log('call bluetooth.startBLEScan failed, code: ${code}, data: ${data}.');
console.log('call bluetooth.startBLEScan failed, code:' + code + ', data:' + data);
},
complete() {
console.log('call bluetooth.startBLEScan complete.');
......@@ -76,7 +76,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.stopBLEScan success.');
},
fail(data, code) {
console.log('call bluethooth.stopBLEScan fail, code: ${code}, data: ${data}.');
console.log('call bluethooth.stopBLEScan fail, code:' + code + ', data:' + data);
},
complete() {
console.log('call bluethooth.stopBLEScan complete.');
......@@ -125,7 +125,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.subscribeBLEFound success, data: ${data}.');
},
fail(data, code) {
console.log('call bluetooth.startBLEScan failed, data: ${data}, code: ${code}.');
console.log('call bluetooth.startBLEScan failed, code:' + code + ', data:' + data);
}
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册