disconnectBleDevice method

  1. @override
Future<void> disconnectBleDevice(
  1. String deviceAddress
)
override

Disconnects from a connected BLE device.

  • deviceAddress: The MAC address of the BLE device to disconnect from. Returns a Future that completes when the disconnection process is initiated.

Implementation

@override
Future<void> disconnectBleDevice(String deviceAddress) async {
  await methodChannel.invokeMethod(
    'ble#disconnect',
    {'deviceAddress': deviceAddress},
  );
}