src.bluetooth_sig.gatt.characteristics.high_intensity_exercise_threshold

High Intensity Exercise Threshold characteristic (0x2B4D).

Classes

Name

Description

HighIntensityExerciseThresholdCharacteristic

High Intensity Exercise Threshold characteristic (0x2B4D).

HighIntensityExerciseThresholdData

High Intensity Exercise Threshold parsed data.

Module Contents

class src.bluetooth_sig.gatt.characteristics.high_intensity_exercise_threshold.HighIntensityExerciseThresholdCharacteristic

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

High Intensity Exercise Threshold characteristic (0x2B4D).

org.bluetooth.characteristic.high_intensity_exercise_threshold

High Intensity Exercise Threshold characteristic with conditional fields.

Structure (variable length): - Field Selector (uint8): 1 byte - determines which threshold field follows

  • 1 = Threshold as Energy Expenditure per Hour (uint16, 0 or 2 bytes)

  • 2 = Threshold as Metabolic Equivalent (uint8, 0 or 1 byte)

  • 3 = Threshold as Percentage of Maximum Heart Rate (uint8, 0 or 1 byte)

Total payload: 1–3 bytes

max_length: int | None = 3
min_length: int | None = 1
class src.bluetooth_sig.gatt.characteristics.high_intensity_exercise_threshold.HighIntensityExerciseThresholdData

Bases: msgspec.Struct

High Intensity Exercise Threshold parsed data.

field_selector

Field selector indicating which threshold is present (1, 2, or 3)

threshold_energy_expenditure

Energy expenditure in joules (field_selector=1)

threshold_metabolic_equivalent

Metabolic equivalent in MET (field_selector=2)

threshold_percentage_max_heart_rate

Heart rate percentage (field_selector=3)

field_selector: int
threshold_energy_expenditure: int | None = None
threshold_metabolic_equivalent: float | None = None
threshold_percentage_max_heart_rate: int | None = None