src.bluetooth_sig.gatt.characteristics.rsc_measurement

RSC Measurement characteristic implementation.

Classes

Name

Description

RSCMeasurementCharacteristic

RSC (Running Speed and Cadence) Measurement characteristic (0x2A53).

RSCMeasurementData

Parsed data from RSC Measurement characteristic.

RSCMeasurementFlags

RSC Measurement flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.rsc_measurement.RSCMeasurementCharacteristic

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[RSCMeasurementData]

RSC (Running Speed and Cadence) Measurement characteristic (0x2A53).

Used to transmit running speed and cadence data.

allow_variable_length: bool = True
min_length: int = 4
class src.bluetooth_sig.gatt.characteristics.rsc_measurement.RSCMeasurementData

Bases: msgspec.Struct

Parsed data from RSC Measurement characteristic.

flags: RSCMeasurementFlags
instantaneous_cadence: int
instantaneous_speed: float
instantaneous_stride_length: float | None = None
total_distance: float | None = None
class src.bluetooth_sig.gatt.characteristics.rsc_measurement.RSCMeasurementFlags

Bases: enum.IntFlag

RSC Measurement flags as per Bluetooth SIG specification.

INSTANTANEOUS_STRIDE_LENGTH_PRESENT = 1
TOTAL_DISTANCE_PRESENT = 2