BluetoothEmulation.simulateGATTOperationResponseSimulates the response code from the peripheral with |address| for a GATT operation of |type|. The |code| value follows the HCI Error Codes from Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
| Name | Type | Description |
|---|---|---|
address | string | |
type | GATTOperationType | |
code | integer |
{
"id": 1,
"method": "BluetoothEmulation.simulateGATTOperationResponse",
"params": {
"address": "address-value",
"type": "type-value",
"code": 1
}
}
{
"id": 1,
"result": {}
}
const result = await send('BluetoothEmulation.simulateGATTOperationResponse', {"address": "address-value", "type": "type-value", "code": 1});
console.log(result);