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

6 statements  

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

1"""Fixed String 24 characteristic (0x2AF6).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Utf8StringTemplate 

7 

8 

9class FixedString24Characteristic(BaseCharacteristic[str]): 

10 """Fixed String 24 characteristic (0x2AF6). 

11 

12 org.bluetooth.characteristic.fixed_string_24 

13 

14 Fixed-length 24-octet UTF-8 string. 

15 """ 

16 

17 _template = Utf8StringTemplate(max_length=24) 

18 expected_length = 24