heartRateMeasurements

fun Peripheral.heartRateMeasurements(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<HeartRateMeasurement>

Observes Heart Rate Measurement notifications from the Heart Rate Service (0x180D).

Return

Flow of parsed HeartRateMeasurement values, or an empty flow if the characteristic is absent.

Parameters

backpressure

Strategy for handling notifications that arrive faster than the collector.