openDevice method

Future<void> openDevice(
  1. String deviceId
)

Open a connection to a specific device.

Implementation

Future<void> openDevice(String deviceId) async {
  try {
    await _channel.invokeMethod('openDevice', {'deviceId': deviceId});
  } on PlatformException catch (e) {
    throw Exception('Failed to open device: ${e.message}');
  }
}