src.bluetooth_sig.gatt.characteristics.cycling_power_feature

Cycling Power Feature characteristic implementation.

Classes

Name

Description

CyclingPowerFeatureCharacteristic

Cycling Power Feature characteristic (0x2A65).

CyclingPowerFeatureData

Parsed data from Cycling Power Feature characteristic.

CyclingPowerFeatures

Cycling Power Feature flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.cycling_power_feature.CyclingPowerFeatureCharacteristic

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

Cycling Power Feature characteristic (0x2A65).

Used to expose the supported features of a cycling power sensor. Contains a 32-bit bitmask indicating supported measurement capabilities.

expected_length: int = 4
class src.bluetooth_sig.gatt.characteristics.cycling_power_feature.CyclingPowerFeatureData

Bases: msgspec.Struct

Parsed data from Cycling Power Feature characteristic.

accumulated_energy_supported: bool
crank_revolution_data_supported: bool
features: CyclingPowerFeatures
pedal_power_balance_supported: bool
wheel_revolution_data_supported: bool
class src.bluetooth_sig.gatt.characteristics.cycling_power_feature.CyclingPowerFeatures

Bases: enum.IntFlag

Cycling Power Feature flags as per Bluetooth SIG specification.

ACCUMULATED_ENERGY_SUPPORTED = 2
CRANK_REVOLUTION_DATA_SUPPORTED = 8
PEDAL_POWER_BALANCE_SUPPORTED = 1
WHEEL_REVOLUTION_DATA_SUPPORTED = 4