提交 358ed946 编写于 作者: L lverpeng

示例代码,接口完整性测试docs修改

Signed-off-by: Nlverpeng <lverpeng118@163.com>
上级 fdea6866
......@@ -2399,7 +2399,9 @@ client端获取蓝牙低功耗设备的所有服务,即服务发现。
```js
// Promise 模式
gattClientDevice.getServices().then(result => {
let device = bluetooth.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
device.connect();
device.getServices().then(result => {
console.info("getServices successfully:" + JSON.stringify(result));
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册