Coverage for src / bluetooth_sig / gatt / characteristics / temperature_type.py: 100%
17 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 20:14 +0000
1"""Temperature Type characteristic implementation."""
3from __future__ import annotations
5from enum import IntEnum
7from .base import BaseCharacteristic
8from .templates import EnumTemplate
11class TemperatureType(IntEnum):
12 """Temperature measurement location enumeration.
14 Values correspond to IEEE 11073-10408-2008 Temperature Type descriptions.
15 """
17 RESERVED_0 = 0 # Reserved for Future Use
18 ARMPIT = 1
19 BODY_GENERAL = 2
20 EAR = 3 # Usually earlobe
21 FINGER = 4
22 GASTROINTESTINAL_TRACT = 5
23 MOUTH = 6
24 RECTUM = 7
25 TOE = 8
26 TYMPANUM = 9 # Ear drum
29class TemperatureTypeCharacteristic(BaseCharacteristic[int]):
30 """Temperature Type characteristic (0x2A1D).
32 org.bluetooth.characteristic.temperature_type
34 Indicates the location of the temperature measurement as an 8-bit enumeration.
35 """
37 _template = EnumTemplate.uint8(TemperatureType)