characteristicValueStream method

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

Implementation

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