BluetoothEmulation.simulateDescriptorOperationResponseSimulates the response from the descriptor with |descriptorId| for a descriptor operation of |type|. The |code| value follows the Error Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. The |data| is expected to exist when simulating a successful read operation response.
| Name | Type | Description |
|---|---|---|
descriptorId | string | |
type | DescriptorOperationType | |
code | integer | |
data (optional) | string |
{
"id": 1,
"method": "BluetoothEmulation.simulateDescriptorOperationResponse",
"params": {
"descriptorId": "descriptorId-value",
"type": "type-value",
"code": 1
}
}
{
"id": 1,
"result": {}
}
const result = await send('BluetoothEmulation.simulateDescriptorOperationResponse', {"descriptorId": "descriptorId-value", "type": "type-value", "code": 1});
console.log(result);