unpair static method

Future<void> unpair(
  1. String deviceId, {
  2. Duration? timeout,
})

Unpair a device. It might throw an error if device is not paired.

Implementation

static Future<void> unpair(
  String deviceId, {
  Duration? timeout,
}) async {
  return await _bleCommandQueue.queueCommand(
    () => _platform.unpair(deviceId),
    deviceId: deviceId,
    timeout: timeout,
  );
}