Coverage for src/bluetooth_sig/gatt/characteristics/irradiance.py: 100%
5 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-06-28 01:26 +0000
1"""Irradiance characteristic implementation."""
3from __future__ import annotations
5from .base import BaseCharacteristic
6from .templates import ScaledUint16Template
9class IrradianceCharacteristic(BaseCharacteristic[float]):
10 """Irradiance characteristic (0x2A77).
12 org.bluetooth.characteristic.irradiance
14 Represents irradiance in W/m² with 0.1 resolution (M=1, d=-1, b=0).
15 """
17 _template = ScaledUint16Template(scale_factor=0.1)