Coverage for src / bluetooth_sig / gatt / characteristics / alert_category_id.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Alert Category ID characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from ...types import AlertCategoryID 

6from .base import BaseCharacteristic 

7from .templates import EnumTemplate 

8 

9 

10class AlertCategoryIdCharacteristic(BaseCharacteristic[AlertCategoryID]): 

11 """Alert Category ID characteristic (0x2A43). 

12 

13 org.bluetooth.characteristic.alert_category_id 

14 

15 The Alert Category ID characteristic is used to represent predefined categories of alerts and messages. 

16 

17 Valid values: 

18 - 0: Simple Alert 

19 - 1: Email 

20 - 2: News 

21 - 3: Call 

22 - 4: Missed Call 

23 - 5: SMS/MMS 

24 - 6: Voice Mail 

25 - 7: Schedule 

26 - 8: High Prioritized Alert 

27 - 9: Instant Message 

28 - 10-250: Reserved for Future Use 

29 - 251-255: Service Specific 

30 

31 Spec: Bluetooth SIG GATT Specification Supplement, Alert Category ID 

32 """ 

33 

34 _template = EnumTemplate.uint8(AlertCategoryID)