blatann.services.glucose package¶
- blatann.services.glucose.add_glucose_service(gatts_database, glucose_database, security_level=SecurityLevel.OPEN, include_context_characteristic=True)¶
Adds the Glucose bluetooth service to the Gatt Server database
- Parameters
gatts_database (blatann.gatt.gatts.GattsDatabase) – The GATT database to add the service to
glucose_database (IGlucoseDatabase) – The database which holds the glucose measurements
security_level (SecurityLevel) – The security level for the record-access control point of the service
include_context_characteristic – flag whether or not to include the optional context characteristic in the service. If this is False, any context stored with glucose measurements will not be reported.
Submodules¶
- blatann.services.glucose.constants module
- blatann.services.glucose.data_types module
GlucoseConcentrationUnits
GlucoseType
GlucoseType.capillary_whole_blood
GlucoseType.capillary_plasma
GlucoseType.venous_whole_blood
GlucoseType.venous_plasma
GlucoseType.arterial_whole_blood
GlucoseType.arterial_plasma
GlucoseType.undetermined_whole_blood
GlucoseType.undetermined_plasma
GlucoseType.interstitial_fluid
GlucoseType.control_solution
SampleLocation
MedicationUnits
CarbohydrateType
MealType
TesterType
HealthStatus
MedicationType
SensorStatusType
SensorStatusType.battery_low
SensorStatusType.sensor_malfunction
SensorStatusType.sample_size_insufficient
SensorStatusType.strip_insertion_error
SensorStatusType.incorrect_strip_type
SensorStatusType.result_above_range
SensorStatusType.result_below_range
SensorStatusType.sensor_temp_high
SensorStatusType.sensor_temp_low
SensorStatusType.sensor_read_interrupted
SensorStatusType.general_device_fault
SensorStatusType.time_fault
SensorStatus
GlucoseFeatureType
GlucoseFeatureType.low_battery_detection
GlucoseFeatureType.sensor_malfunction_detection
GlucoseFeatureType.sensor_sample_size
GlucoseFeatureType.strip_insertion_error_detection
GlucoseFeatureType.strip_type_error_detection
GlucoseFeatureType.sensor_result_high_low_detection
GlucoseFeatureType.sensor_temp_high_low_detection
GlucoseFeatureType.sensor_read_interrupt_detection
GlucoseFeatureType.general_device_fault
GlucoseFeatureType.time_fault
GlucoseFeatureType.multiple_bond
GlucoseFeatures
GlucoseSample
GlucoseMeasurement
CarbsInfo
ExerciseInfo
MedicationInfo
GlucoseContext
- blatann.services.glucose.database module
- blatann.services.glucose.racp module
RacpOpcode
RacpOperator
FilterType
RacpResponseCode
RacpResponseCode.success
RacpResponseCode.not_supported
RacpResponseCode.invalid_operator
RacpResponseCode.operator_not_supported
RacpResponseCode.invalid_operand
RacpResponseCode.no_records_found
RacpResponseCode.abort_not_successful
RacpResponseCode.procedure_not_completed
RacpResponseCode.operand_not_supported
RacpCommand
RacpResponse
- blatann.services.glucose.service module