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

17 statements  

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

1"""Bearer Technology characteristic (0x2BB5).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntEnum 

6 

7from .base import BaseCharacteristic 

8from .templates import EnumTemplate 

9 

10 

11class BearerTechnology(IntEnum): 

12 """Bearer technology type.""" 

13 

14 THREEG = 0x01 

15 FOURGEE = 0x02 

16 LTE = 0x03 

17 WIFI = 0x04 

18 FIVEG = 0x05 

19 GSM = 0x06 

20 CDMA = 0x07 

21 TWOG = 0x08 

22 WCDMA = 0x09 

23 

24 

25class BearerTechnologyCharacteristic(BaseCharacteristic[BearerTechnology]): 

26 """Bearer Technology characteristic (0x2BB5). 

27 

28 org.bluetooth.characteristic.bearer_technology 

29 

30 Technology used by the telephone bearer. 

31 """ 

32 

33 expected_length: int = 1 

34 _template = EnumTemplate.uint8(BearerTechnology)