disconnectBleDevice method
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},
);
}