From dfe989e38427776667820045bc2ca39633065155 Mon Sep 17 00:00:00 2001 From: lverpeng Date: Tue, 9 Aug 2022 10:16:24 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20fed560c=20from=20https://gitee.com/lver?= =?UTF-8?q?peng/docs/pulls/7900=20bluetooth=E6=B7=BB=E5=8A=A0BondStatePara?= =?UTF-8?q?m=E6=8E=A5=E5=8F=A3=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lverpeng --- .../reference/apis/js-apis-bluetooth.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md b/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md index ee5dc135cb..70507b6e8e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md @@ -620,7 +620,7 @@ on(type: "bondStateChange", callback: Callback<BondStateParam>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------------- | ---- | ------------------------------------ | | type | string | 是 | 填写"bondStateChange"字符串,表示蓝牙配对状态改变事件。 | -| callback | Callback<[BondStateParam](#bondstate)> | 是 | 表示回调函数的入参,配对的状态。回调函数由用户创建通过该接口注册。 | +| callback | Callback<[BondStateParam](#BondStateParam)> | 是 | 表示回调函数的入参,配对的状态。回调函数由用户创建通过该接口注册。 | **返回值:** @@ -651,7 +651,7 @@ off(type: "bondStateChange", callback?: Callback<BondStateParam>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------------- | ---- | ---------------------------------------- | | type | string | 是 | 填写"bondStateChange"字符串,表示蓝牙配对状态改变事件。 | -| callback | Callback<[BondStateParam](#bondstate)> | 否 | 表示取消订阅蓝牙配对状态改变事件上报。不填该参数则取消订阅该type对应的所有回调。 | +| callback | Callback<[BondStateParam](#BondStateParam)> | 否 | 表示取消订阅蓝牙配对状态改变事件上报。不填该参数则取消订阅该type对应的所有回调。 | **返回值:** @@ -3356,6 +3356,18 @@ let rssi = gattClient.getRssiValue().then((data) => { | pinCode | string | 是 | 否 | 表示要配对的密钥。 | +## BondStateParam8+ + +描述配对状态参数。 + +**系统能力**:SystemCapability.Communication.Bluetooth.Core。 + +| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| -------- | ------ | ---- | ---- | ----------- | +| deviceId | string | 是 | 否 | 表示要配对的设备ID。 | +| state | BondState | 是 | 否 | 表示配对设备的状态。 | + + ## StateChangeParam8+ 描述profile状态改变参数。 -- GitLab