提交 545389f4 编写于 作者: T tangjia 提交者: huxiaokai
上级 05443c50
...@@ -42,7 +42,7 @@ import bluetooth from '@system.bluetooth'; ...@@ -42,7 +42,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.startBLEScan success.'); console.log('call bluetooth.startBLEScan success.');
}, },
fail(code, data) { fail(code, data) {
console.log('call bluetooth.startBLEScan failed, code: ${code}, data: ${data}.'); console.log('call bluetooth.startBLEScan failed, code:' + code + ', data:' + data);
}, },
complete() { complete() {
console.log('call bluetooth.startBLEScan complete.'); console.log('call bluetooth.startBLEScan complete.');
...@@ -76,7 +76,7 @@ import bluetooth from '@system.bluetooth'; ...@@ -76,7 +76,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.stopBLEScan success.'); console.log('call bluetooth.stopBLEScan success.');
}, },
fail(data, code) { fail(data, code) {
console.log('call bluethooth.stopBLEScan fail, code: ${code}, data: ${data}.'); console.log('call bluethooth.stopBLEScan fail, code:' + code + ', data:' + data);
}, },
complete() { complete() {
console.log('call bluethooth.stopBLEScan complete.'); console.log('call bluethooth.stopBLEScan complete.');
...@@ -125,7 +125,7 @@ import bluetooth from '@system.bluetooth'; ...@@ -125,7 +125,7 @@ import bluetooth from '@system.bluetooth';
console.log('call bluetooth.subscribeBLEFound success, data: ${data}.'); console.log('call bluetooth.subscribeBLEFound success, data: ${data}.');
}, },
fail(data, code) { 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.
先完成此消息的编辑!
想要评论请 注册