src.bluetooth_sig.gatt.characteristics.cgm_session_run_time

CGM Session Run Time characteristic implementation.

Implements the CGM Session Run Time characteristic (0x2AAB).

Structure (from GSS YAML):

CGM Session Run Time (uint16) – expected run time in hours E2E-CRC (uint16, optional) – present if E2E-CRC Supported

References

Bluetooth SIG Continuous Glucose Monitoring Service org.bluetooth.characteristic.cgm_session_run_time (GSS YAML)

Classes

Name

Description

CGMSessionRunTimeCharacteristic

CGM Session Run Time characteristic (0x2AAB).

CGMSessionRunTimeData

Parsed data from CGM Session Run Time characteristic.

Module Contents

class src.bluetooth_sig.gatt.characteristics.cgm_session_run_time.CGMSessionRunTimeCharacteristic(info: src.bluetooth_sig.types.CharacteristicInfo | None = None, validation: src.bluetooth_sig.gatt.characteristics.characteristic_meta.ValidationConfig | None = None)

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[CGMSessionRunTimeData]

CGM Session Run Time characteristic (0x2AAB).

Reports the expected run time of the CGM session in hours.

allow_variable_length: bool = True
expected_type
min_length: int = 2
class src.bluetooth_sig.gatt.characteristics.cgm_session_run_time.CGMSessionRunTimeData

Bases: msgspec.Struct

Parsed data from CGM Session Run Time characteristic.

run_time_hours

Expected run time of the CGM session in hours.

e2e_crc

E2E-CRC value. None if absent.

e2e_crc: int | None = None
run_time_hours: int