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

6 statements  

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

1"""Time Second 16 characteristic (0x2B17).""" 

2 

3from __future__ import annotations 

4 

5from datetime import timedelta 

6 

7from .base import BaseCharacteristic 

8from .templates import TimeDurationTemplate 

9 

10 

11class TimeSecond16Characteristic(BaseCharacteristic[timedelta]): 

12 """Time Second 16 characteristic (0x2B17). 

13 

14 org.bluetooth.characteristic.time_second_16 

15 

16 Time in seconds with a resolution of 1 (0-65534). 

17 A value of 0xFFFF represents 'value is not known'. 

18 

19 Raises: 

20 SpecialValueDetectedError: If raw value is a sentinel (e.g. 0xFFFF). 

21 """ 

22 

23 _template = TimeDurationTemplate.seconds_uint16()