connect method

Future<bool> connect(
  1. String address
)

Connect to a device

Implementation

Future<bool> connect(String address) async {
  try {
    return await _channel.invokeMethod('connect', {'address': address});
  } catch (e) {
    throw BluetoothException('Failed to connect to device: $e');
  }
}