connect method

Future<void> connect(
  1. String deviceId
)

Connects to the BLE device with the given deviceId.

deviceId - The identifier of the target device.

Attempts to establish a connection to the BLE device.

Implementation

Future<void> connect(String deviceId) async {
  try {
    await _bleConnectivityHandler.connect(deviceId);
  } catch (e) {
    _appLogger.error("Error connecting to device $deviceId: $e");
    rethrow;
  }
}