connect method

Future<bool> connect()

Connects to the MSR605X device.

Returns true if the connection was successful, false otherwise.

Throws an exception if the connection fails.

Implementation

Future<bool> connect() async {
  try {
    return await MSRXPlatform.instance.connect();
  } on PlatformException catch (e) {
    throw Exception("Connection failed: ${e.message}");
  }
}