Coverage for src/bluetooth_sig/gatt/services/device_time.py: 100%
6 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
1"""DeviceTime Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class DeviceTimeService(BaseGattService):
12 """Device Time Service implementation (0x1847).
14 Provides device time management including time synchronisation,
15 feature reporting, and time adjustment control.
16 """
18 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
19 CharacteristicName.DEVICE_TIME_FEATURE: True,
20 CharacteristicName.DEVICE_TIME_PARAMETERS: True,
21 CharacteristicName.DEVICE_TIME: True,
22 CharacteristicName.DEVICE_TIME_CONTROL_POINT: True,
23 CharacteristicName.TIME_CHANGE_LOG_DATA: False,
24 CharacteristicName.RECORD_ACCESS_CONTROL_POINT: False,
25 }