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

6 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-28 01:26 +0000

1"""ReconnectionConfiguration 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 ReconnectionConfigurationService(BaseGattService): 

12 """Reconnection Configuration Service implementation (0x1829). 

13 

14 Allows a client to configure reconnection parameters on a 

15 peripheral device. 

16 """ 

17 

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

19 CharacteristicName.RC_FEATURE: True, 

20 CharacteristicName.RC_SETTINGS: False, 

21 CharacteristicName.RECONNECTION_CONFIGURATION_CONTROL_POINT: False, 

22 }