connect method

Future<bool> connect (
  1. String name
)

Implementation

static Future<bool> connect(String name) async {
  assert(name != null && name.length > 0, 'Must provide a name of the eSense device to connect to.');
  assert(Platform.isAndroid, 'Currently the eSense API is only available on Android.');
  eSenseDeviceName = name;
  return await _eSenseManagerMethodChannel.invokeMethod('connect', <String, dynamic>{'name': name});
}