Coverage for src/bluetooth_sig/gatt/services/blood_pressure.py: 100%
7 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"""Blood Pressure Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class BloodPressureService(BaseGattService):
12 """Blood Pressure Service implementation.
14 Contains characteristics related to blood pressure measurement:
15 - Blood Pressure Measurement - Required
16 - Intermediate Cuff Pressure - Optional
17 - Blood Pressure Feature - Optional
18 """
20 _service_name: str = "Blood Pressure"
22 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
23 CharacteristicName.BLOOD_PRESSURE_MEASUREMENT: True,
24 CharacteristicName.INTERMEDIATE_CUFF_PRESSURE: False,
25 CharacteristicName.BLOOD_PRESSURE_FEATURE: False,
26 }