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

7 statements  

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

1"""Length characteristic (0x2C0A).""" 

2 

3from __future__ import annotations 

4 

5from ...types.gatt_enums import CharacteristicRole 

6from .base import BaseCharacteristic 

7from .templates import Uint32Template 

8 

9 

10class LengthCharacteristic(BaseCharacteristic[int]): 

11 """Length characteristic (0x2C0A). 

12 

13 org.bluetooth.characteristic.length 

14 

15 Length measurement in units of 1e-7 metres (100 nm resolution). 

16 """ 

17 

18 _manual_role = CharacteristicRole.MEASUREMENT 

19 _template = Uint32Template()