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

!7045 示例代码,接口完整性测试docs修改-3.1Release

Merge pull request !7045 from lverpeng/OpenHarmony-3.1-Release
......@@ -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.
先完成此消息的编辑!
想要评论请 注册