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

6 statements  

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

1"""Fixed String 8 characteristic (0x2AF8).""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import Utf8StringTemplate 

7 

8 

9class FixedString8Characteristic(BaseCharacteristic[str]): 

10 """Fixed String 8 characteristic (0x2AF8). 

11 

12 org.bluetooth.characteristic.fixed_string_8 

13 

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

15 """ 

16 

17 _template = Utf8StringTemplate(max_length=8) 

18 expected_length = 8