src.bluetooth_sig.gatt.characteristics.glucose_feature¶
Glucose Feature characteristic implementation.
Classes¶
Name | Description |
|---|---|
Glucose Feature characteristic (0x2A51). |
|
Parsed data from Glucose Feature characteristic. |
|
Glucose Feature flags according to Bluetooth SIG specification. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.glucose_feature.GlucoseFeatureCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[GlucoseFeatureData]Glucose Feature characteristic (0x2A51).
Used to expose the supported features of a glucose monitoring device. Indicates which optional fields and capabilities are available.
- class src.bluetooth_sig.gatt.characteristics.glucose_feature.GlucoseFeatureData¶
Bases:
msgspec.StructParsed data from Glucose Feature characteristic.
- enabled_features: tuple[GlucoseFeatures, Ellipsis]¶
- features_bitmap: GlucoseFeatures¶
- class src.bluetooth_sig.gatt.characteristics.glucose_feature.GlucoseFeatures¶
Bases:
enum.IntFlagGlucose Feature flags according to Bluetooth SIG specification.
- get_enabled_features() list[GlucoseFeatures]¶
Get list of human-readable enabled features.
- GENERAL_DEVICE_FAULT = 256¶
- LOW_BATTERY_DETECTION = 1¶
- MULTIPLE_BOND_SUPPORT = 1024¶
- SENSOR_MALFUNCTION_DETECTION = 2¶
- SENSOR_READ_INTERRUPT = 128¶
- SENSOR_RESULT_HIGH_LOW = 32¶
- SENSOR_SAMPLE_SIZE = 4¶
- SENSOR_STRIP_INSERTION_ERROR = 8¶
- SENSOR_STRIP_TYPE_ERROR = 16¶
- SENSOR_TEMPERATURE_HIGH_LOW = 64¶
- TIME_FAULT = 512¶