initDevice method

  1. @override
Future<bool> initDevice(
  1. AclasConnectionType type
)
override

Initialize the scale for the given connection type. type must be AclasConnectionType.Serial, .USB, or .Bluetooth.

Implementation

@override
Future<bool> initDevice(AclasConnectionType type) async {
  final result = await methodChannel.invokeMethod<bool>(
    'initDevice',
    <String, Object>{'type': _connectionTypeToArg(type)},
  );
  return result ?? false;
}