Coverage for src/bluetooth_sig/gatt/services/cycling_speed_and_cadence.py: 100%
6 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-30 00:10 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-30 00:10 +0000
1"""Cycling Speed and Cadence Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class CyclingSpeedAndCadenceService(BaseGattService):
12 """Cycling Speed and Cadence Service implementation (0x1816).
14 Used for cycling sensors that measure wheel and crank revolutions.
15 Contains the CSC Measurement characteristic for cycling metrics.
16 """
18 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
19 CharacteristicName.CSC_MEASUREMENT: True, # required
20 }