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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""AuthorizationControl 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 AuthorizationControlService(BaseGattService): 

12 """Authorization Control Service implementation (0x183D). 

13 

14 Provides authorisation control for BLE service access using 

15 a challenge-response mechanism. 

16 """ 

17 

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

19 CharacteristicName.ACS_CONTROL_POINT: True, 

20 CharacteristicName.ACS_DATA_IN: False, 

21 CharacteristicName.ACS_DATA_OUT_INDICATE: False, 

22 CharacteristicName.ACS_DATA_OUT_NOTIFY: False, 

23 CharacteristicName.ACS_STATUS: True, 

24 }