src.bluetooth_sig.gatt.characteristics.high_intensity_exercise_threshold¶
High Intensity Exercise Threshold characteristic (0x2B4D).
Classes¶
Name | Description |
|---|---|
High Intensity Exercise Threshold characteristic (0x2B4D). |
|
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
- class src.bluetooth_sig.gatt.characteristics.high_intensity_exercise_threshold.HighIntensityExerciseThresholdData¶
Bases:
msgspec.StructHigh 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)