UniversalBleConnector constructor

UniversalBleConnector({
  1. required String deviceId,
  2. required List<String> serviceIds,
})

Implementation

UniversalBleConnector({required this.deviceId, required this.serviceIds}) {
  backend.UniversalBle.onConnectionChange =
      (String deviceId, bool isConnected, String? error) {
    if (deviceId != this.deviceId) return;
    if (isConnected) return;
    _updateConnectorStatus(BleConnectorStatus.disconnected);
  };
}