提交 950b8a1c 编写于 作者: A annie_wangli

update docs

Signed-off-by: Nannie_wangli <annie.wangli@huawei.com>
上级 fcbcccd5
...@@ -217,8 +217,8 @@ Obtains the connection status of a profile. ...@@ -217,8 +217,8 @@ Obtains the connection status of a profile.
**Return value** **Return value**
| Type | Description | | Type | Description |
| ---------------------------------------- | ------------- | | ------------------------------------------------- | ------------------- |
| [ProfileConnectionState](#ProfileConnectionState) | Profile connection state obtained.| | [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.|
**Example** **Example**
...@@ -1235,13 +1235,13 @@ Obtains the connection status of the profile. ...@@ -1235,13 +1235,13 @@ Obtains the connection status of the profile.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| ------ | ------ | ---- | ------- | | ------ | ------ | ---- | ------- |
| device | string | Yes | Address of the remote device.| | device | string | Yes | Address of the target device.|
| |
**Return value** **Return value**
| | | | | |
| ---------------------------------------- | --------------- | | ------------------------------------------------- | ----------------------- |
| Type | Description | | Type | Description |
| [ProfileConnectionState](#profileconnectionState) | Profile connection state obtained. | | [ProfileConnectionState](#profileconnectionState) | Profile connection state obtained. |
...@@ -1904,7 +1904,7 @@ Subscribes to the characteristic write request events. ...@@ -1904,7 +1904,7 @@ Subscribes to the characteristic write request events.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | ---------------------------------------- | ---- | -------------------------------------- | | -------- | ---------------------------------------- | ---- | -------------------------------------- |
| type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event.| | type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event.|
| callback | Callback&lt;[DescriptorWriteReq](#descriptorwritereq)&gt; | Yes | Callback invoked to return a characteristic write request from the GATT client. | | callback | Callback&lt;[CharacteristicWriteReq](#descriptorwritereq)&gt; | Yes | Callback invoked to return a characteristic write request from the GATT client. |
**Return value** **Return value**
...@@ -1984,7 +1984,7 @@ Subscribes to the descriptor read request events. ...@@ -1984,7 +1984,7 @@ Subscribes to the descriptor read request events.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | ---------------------------------------- | ---- | --------------------------------- | | -------- | ---------------------------------------- | ---- | --------------------------------- |
| type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event.| | type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event.|
| callback | Callback&lt;[DescriptorReadReq](#descriptorreadreq)&gt; | Yes | Callback invoked to return a descriptor read request event from the GATT client. | | callback | Callback&lt;[DescriptorReadReq](#descriptorreadreq)&gt; | Yes | Callback invoked to return a descriptor read request from the GATT client. |
**Return value** **Return value**
...@@ -3116,10 +3116,10 @@ Defines the parameters of **BLEConnectChangedState**. ...@@ -3116,10 +3116,10 @@ Defines the parameters of **BLEConnectChangedState**.
**System capability**: SystemCapability.Communication.Bluetooth.Core **System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description | | Name | Type | Readable| Writable| Description |
| -------- | ---------------------------------------- | ---- | ---- | -------------------------------- | | -------- | ------------------------------------------------- | ---- | ---- | --------------------------------------------- |
| deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.| | deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.|
| state | [ProfileConnectionState](#profileconnectionState) | Yes | Yes | BLE connection state. | | state | [ProfileConnectionState](#profileconnectionstate) | Yes | Yes | BLE connection state. |
## ProfileConnectionState ## ProfileConnectionState
...@@ -3285,10 +3285,10 @@ Defines the profile state change parameters. ...@@ -3285,10 +3285,10 @@ Defines the profile state change parameters.
**System capability**: SystemCapability.Communication.Bluetooth.Core **System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description | | Name | Type | Readable| Writable| Description |
| -------- | ---------------------------------------- | ---- | ---- | ------------------- | | -------- | ------------------------------------------------- | ---- | ---- | ------------------------------- |
| deviceId | string | Yes | No | Address of a Bluetooth device. | | deviceId | string | Yes | No | Address of a Bluetooth device. |
| state | [ProfileConnectionState](#ProfileConnectionState) | Yes | No | Profile connection state of the device.| | state | [ProfileConnectionState](#profileconnectionstate) | Yes | No | Profile connection state of the device.|
## DeviceClass<sup>8+</sup><a name="DeviceClass"></a> ## DeviceClass<sup>8+</sup><a name="DeviceClass"></a>
......
...@@ -1904,7 +1904,7 @@ server端订阅特征值写请求事件。 ...@@ -1904,7 +1904,7 @@ server端订阅特征值写请求事件。
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ---------------------------------------- | ---- | -------------------------------------- | | -------- | ---------------------------------------- | ---- | -------------------------------------- |
| type | string | 是 | 填写"characteristicWrite"字符串,表示特征值写请求事件。 | | type | string | 是 | 填写"characteristicWrite"字符串,表示特征值写请求事件。 |
| callback | Callback&lt;[DescriptorWriteReq](#descriptorwritereq)&gt; | 是 | 表示回调函数的入参,client端发送的写请求数据。 | | callback | Callback&lt;[CharacteristicWriteReq](#characteristicwritereq)&gt; | 是 | 表示回调函数的入参,client端发送的写请求数据。 |
**返回值:** **返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册