simulateGATTOperationResponse method

Future<void> simulateGATTOperationResponse(
  1. String address,
  2. GATTOperationType type,
  3. int code
)

Simulates 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.

Implementation

Future<void> simulateGATTOperationResponse(
  String address,
  GATTOperationType type,
  int code,
) async {
  await _client.send('BluetoothEmulation.simulateGATTOperationResponse', {
    'address': address,
    'type': type,
    'code': code,
  });
}