connectDevice method

Future<void> connectDevice(
  1. String serialNumber
)

Connects to the device with the serial number. Suitably call this whenever one has found a device from startScanning

Implementation

Future<void> connectDevice(String serialNumber) async {
  await _methodChannel
      .invokeMethod('connectDevice', {'serialNumber': serialNumber});
}