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 70507b6e8e69a164198e66262ca3710a1a8a4870..488d6d99b84f827749717f7703a388e69bbe6239 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md @@ -1269,9 +1269,8 @@ getConnectionDevices(): Array<string> **返回值:** -| | | +| 类型 | 说明 | | ------------------- | ------------- | -| 类型 | 说明 | | Array<string> | 返回已连接设备的地址列表。 | @@ -1292,9 +1291,8 @@ getDeviceState(device: string): ProfileConnectionState | device | string | 是 | 远端设备地址。 | **返回值:** -| | | +| 类型 | 说明 | | ------------------------------------------------- | ----------------------- | -| 类型 | 说明 | | [ProfileConnectionState](#profileconnectionstate) | 返回profile的连接状态。 | @@ -1318,13 +1316,11 @@ connect(device: string): boolean | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | device | string | 是 | 远端设备地址。 | -| **返回值:** -| | | -| ------- | ------------------- | | 类型 | 说明 | +| ------- | ------------------- | | boolean | 成功返回true,失败返回false。 | **示例:** @@ -1350,13 +1346,12 @@ disconnect(device: string): boolean | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | device | string | 是 | 远端设备地址。 | -| + **返回值:** -| | | -| ------- | ------------------- | | 类型 | 说明 | +| ------- | ------------------- | | boolean | 成功返回true,失败返回false。 | **示例:** @@ -1443,9 +1438,8 @@ getPlayingState(device: string): PlayingState **返回值:** -| | | -| ----------------------------- | ---------- | | 类型 | 说明 | +| ----------------------------- | ---------- | | [PlayingState](#PlayingState) | 远端设备的播放状态。 | **示例:** @@ -1476,13 +1470,12 @@ connect(device: string): boolean | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | device | string | 是 | 远端设备地址。 | -| + **返回值:** -| | | -| ------- | ------------------- | | 类型 | 说明 | +| ------- | ------------------- | | boolean | 成功返回true,失败返回false。 | **示例:** @@ -1508,7 +1501,7 @@ disconnect(device: string): boolean | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | | device | string | 是 | 远端设备地址。 | -| + **返回值:** @@ -1753,9 +1746,8 @@ removeService(serviceUuid: string): boolean **返回值:** -| | | -| ------- | -------------------------- | | 类型 | 说明 | +| ------- | -------------------------- | | boolean | 删除服务操作,成功返回true,否则返回false。 | **示例:** @@ -1803,9 +1795,8 @@ server端特征值发生变化时,主动通知已连接的client设备。 **返回值:** -| | | -| ------- | ------------------------ | | 类型 | 说明 | +| ------- | ------------------------ | | boolean | 通知操作,成功返回true,否则返回false。 | **示例:** @@ -1849,9 +1840,8 @@ server端回复client端的读写请求。 **返回值:** -| | | -| ------- | -------------------------- | | 类型 | 说明 | +| ------- | -------------------------- | | boolean | 回复响应操作,成功返回true,否则返回false。 | **示例:** @@ -2479,9 +2469,8 @@ client端读取蓝牙低功耗设备特定服务的特征值。 **返回值:** -| | | -| ---------------------------------------- | -------------------------- | | 类型 | 说明 | +| ---------------------------------------- | -------------------------- | | Promise<[BLECharacteristic](#blecharacteristic)> | client读取特征值,通过promise形式获取。 | **示例:** @@ -2570,9 +2559,8 @@ client端读取蓝牙低功耗设备特定的特征包含的描述符。 **返回值:** -| | | -| ---------------------------------------- | -------------------------- | | 类型 | 说明 | +| ---------------------------------------- | -------------------------- | | Promise<[BLEDescriptor](#bledescriptor)> | client读取描述符,通过promise形式获取。 | **示例:**