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

6 statements  

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

1"""Time Second 32 characteristic (0x2B18).""" 

2 

3from __future__ import annotations 

4 

5from datetime import timedelta 

6 

7from .base import BaseCharacteristic 

8from .templates import TimeDurationTemplate 

9 

10 

11class TimeSecond32Characteristic(BaseCharacteristic[timedelta]): 

12 """Time Second 32 characteristic (0x2B18). 

13 

14 org.bluetooth.characteristic.time_second_32 

15 

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

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

18 

19 Raises: 

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

21 """ 

22 

23 _template = TimeDurationTemplate.seconds_uint32()