Coverage for src / bluetooth_sig / gatt / services / pulse_oximeter_service.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Pulse Oximeter Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class PulseOximeterService(BaseGattService): 

12 """Pulse Oximeter Service implementation. 

13 

14 Contains characteristics related to pulse oximetry: 

15 - PLX Spot-Check Measurement - Optional 

16 - PLX Continuous Measurement - Optional 

17 - PLX Features - Mandatory 

18 """ 

19 

20 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

21 CharacteristicName.PLX_SPOT_CHECK_MEASUREMENT: False, # optional 

22 CharacteristicName.PLX_CONTINUOUS_MEASUREMENT: False, # optional 

23 CharacteristicName.PLX_FEATURES: True, # mandatory 

24 }