Coverage for src/bluetooth_sig/gatt/services/location_and_navigation.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"""Location and Navigation Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class LocationAndNavigationService(BaseGattService):
12 """Location and Navigation Service implementation.
14 Contains characteristics related to location and navigation data:
15 - LN Feature - Required
16 - Location and Speed - Optional
17 - Navigation - Optional
18 - Position Quality - Optional
19 - LN Control Point - Optional
20 """
22 _service_name: str = "Location and Navigation"
24 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
25 CharacteristicName.LN_FEATURE: True,
26 CharacteristicName.LOCATION_AND_SPEED: False,
27 CharacteristicName.NAVIGATION: False,
28 CharacteristicName.POSITION_QUALITY: False,
29 CharacteristicName.LN_CONTROL_POINT: False,
30 }