disconnect method

  1. @override
Future<IBleDevice> disconnect()
override

Disconnect from the Device

Implementation

@override
Future<IBleDevice> disconnect() async {
  await Future.delayed(const Duration(seconds: 2)).then((value) =>
      _bleDeviceConnectionStateChangeListener?.onDeviceConnectionStateChanged(
          device: this, newGattState: BleConnectionState.disconnected));
  return this;
}