connect method
Connect to the Device
Implementation
@override
Future<IBleDevice> connect(
{Duration duration = const Duration(seconds: 2),
bool autoConnect = false}) async {
await Future.delayed(const Duration(seconds: 2)).then((value) {
_bleDeviceConnectionStateChangeListener?.onDeviceConnectionStateChanged(
device: this, newGattState: BleConnectionState.connected);
});
return this;
}