simulatePreconnectedPeripheral method

Future<void> simulatePreconnectedPeripheral(
  1. String address,
  2. String name,
  3. List<ManufacturerData> manufacturerData,
  4. List<String> knownServiceUuids,
)

Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.

Implementation

Future<void> simulatePreconnectedPeripheral(
    String address,
    String name,
    List<ManufacturerData> manufacturerData,
    List<String> knownServiceUuids) async {
  await _client.send('BluetoothEmulation.simulatePreconnectedPeripheral', {
    'address': address,
    'name': name,
    'manufacturerData': [...manufacturerData],
    'knownServiceUuids': [...knownServiceUuids],
  });
}