Coverage for src / bluetooth_sig / gatt / services / generic_access.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Generic Access Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class GenericAccessService(BaseGattService):
12 """Generic Access Service implementation.
14 Contains characteristics that expose basic device access information:
15 - Device Name - Required
16 - Appearance - Optional
17 """
19 _service_name: str = "GAP"
21 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
22 CharacteristicName.DEVICE_NAME: True, # required
23 CharacteristicName.APPEARANCE: False, # optional
24 }