characteristicValueStream method

Stream<Uint8List> characteristicValueStream(
  1. String deviceId,
  2. String characteristicId
)

Implementation

Stream<Uint8List> characteristicValueStream(
  String deviceId,
  String characteristicId,
) {
  final target = _deviceId(deviceId).canonical;
  characteristicId = BleUuidParser.string(characteristicId);
  return _valueStreamController.stream
      .where((e) =>
          e.deviceId == target && e.characteristicId == characteristicId)
      .map((e) => e.value);
}