Coverage for src / bluetooth_sig / types / location.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Location and Navigation types and enumerations. 

2 

3Provides common types used across location and navigation related characteristics. 

4Based on Bluetooth SIG GATT Specification for Location and Navigation Service (0x1819). 

5""" 

6 

7from __future__ import annotations 

8 

9from enum import IntEnum 

10 

11 

12class PositionStatus(IntEnum): 

13 """Position status enumeration. 

14 

15 Used by Navigation and Position Quality characteristics to indicate 

16 the status/quality of position data. 

17 

18 Per Bluetooth SIG Location and Navigation Service specification. 

19 """ 

20 

21 NO_POSITION = 0 

22 POSITION_OK = 1 

23 ESTIMATED_POSITION = 2 

24 LAST_KNOWN_POSITION = 3