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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Fixed String 16 characteristic (0x2AF7).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Utf8StringTemplate 

7 

8 

9class FixedString16Characteristic(BaseCharacteristic[str]): 

10 """Fixed String 16 characteristic (0x2AF7). 

11 

12 org.bluetooth.characteristic.fixed_string_16 

13 

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

15 """ 

16 

17 _template = Utf8StringTemplate(max_length=16) 

18 expected_length = 16