Package-level declarations

Types

Link copied to clipboard

Body location where the heart rate sensor is worn (0x2A38).

Link copied to clipboard
data class HeartRateMeasurement(val heartRate: Int, val sensorContactDetected: Boolean?, val energyExpended: Int?, val rrIntervals: List<Int>)

Parsed Heart Rate Measurement (0x2A37) notification payload.

Functions

Link copied to clipboard
fun Peripheral.heartRateMeasurements(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<HeartRateMeasurement>

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

Link copied to clipboard

Parses a Body Sensor Location characteristic value (0x2A38).

Link copied to clipboard

Parses a Heart Rate Measurement characteristic value (0x2A37).

Link copied to clipboard
suspend fun Peripheral.readBodySensorLocation(): BodySensorLocation?

Reads the body sensor location from the Heart Rate Service (0x180D).

Link copied to clipboard
suspend fun Peripheral.resetHeartRateEnergyExpended()

Resets the cumulative energy expended counter on the Heart Rate sensor.