Package-level declarations
Types
Link copied to clipboard
data class CscFeature(val wheelRevolutionDataSupported: Boolean, val crankRevolutionDataSupported: Boolean, val multipleSensorLocationsSupported: Boolean)
Supported features of the Cycling Speed and Cadence Service (0x2A5C).
Link copied to clipboard
data class CscMeasurement(val cumulativeWheelRevolutions: Long?, val lastWheelEventTime: Int?, val cumulativeCrankRevolutions: Int?, val lastCrankEventTime: Int?)
Parsed Cycling Speed and Cadence Measurement (0x2A5B) notification payload.
Functions
Link copied to clipboard
fun Peripheral.cscMeasurements(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<CscMeasurement>
Observes CSC Measurement notifications from the Cycling Speed and Cadence Service (0x1816).
Link copied to clipboard
Parses a CSC Feature characteristic value (0x2A5C).
Link copied to clipboard
Parses a CSC Measurement characteristic value (0x2A5B).
Link copied to clipboard
Reads the supported features of the Cycling Speed and Cadence Service (0x1816).