Package-level declarations

Types

Link copied to clipboard

Type of carbohydrate intake associated with a glucose measurement.

Link copied to clipboard

Unit of glucose concentration measurement.

Link copied to clipboard
data class GlucoseFeature(val lowBatteryDetectionSupported: Boolean, val sensorMalfunctionDetectionSupported: Boolean, val sensorSampleSizeSupported: Boolean, val sensorStripInsertionErrorDetectionSupported: Boolean, val sensorStripTypeErrorDetectionSupported: Boolean, val sensorResultHighLowDetectionSupported: Boolean, val sensorTemperatureHighLowDetectionSupported: Boolean, val sensorReadInterruptDetectionSupported: Boolean, val generalDeviceFaultSupported: Boolean, val timeFaultSupported: Boolean, val multipleBondSupported: Boolean)

Supported features of the Glucose Service (0x2A51).

Link copied to clipboard
data class GlucoseMeasurement(val sequenceNumber: Int, val baseTime: BleDateTime, val timeOffset: Int?, val concentration: Float?, val unit: GlucoseConcentrationUnit?, val type: GlucoseType?, val sampleLocation: GlucoseSampleLocation?, val sensorStatus: GlucoseSensorStatus?)

Parsed Glucose Measurement (0x2A18) notification payload.

Link copied to clipboard
data class GlucoseMeasurementContext(val sequenceNumber: Int, val carbohydrateId: CarbohydrateId?, val carbohydrateWeight: Float?, val meal: Meal?, val tester: Tester?, val health: Health?, val exerciseDuration: Int?, val exerciseIntensity: Int?, val medicationId: MedicationId?, val medicationQuantity: Float?, val medicationUnit: MedicationUnit?, val hba1c: Float?)

Parsed Glucose Measurement Context (0x2A34) providing additional information about a glucose measurement (meal, medication, exercise, HbA1c).

Link copied to clipboard

Body location where the glucose sample was taken.

Link copied to clipboard
data class GlucoseSensorStatus(val batteryLow: Boolean, val sensorMalfunction: Boolean, val sampleSizeInsufficient: Boolean, val stripInsertionError: Boolean, val stripTypeIncorrect: Boolean, val sensorResultTooHigh: Boolean, val sensorResultTooLow: Boolean, val sensorTemperatureTooHigh: Boolean, val sensorTemperatureTooLow: Boolean, val sensorReadInterrupted: Boolean, val generalDeviceFault: Boolean, val timeFault: Boolean)

Sensor status annunciation flags from the glucose meter.

Link copied to clipboard

Type of blood or fluid sample used for the glucose measurement.

Link copied to clipboard
enum Health : Enum<Health>

Health status of the user at the time of the glucose measurement.

Link copied to clipboard
enum Meal : Enum<Meal>

Meal context for a glucose measurement.

Link copied to clipboard

Type of medication associated with a glucose measurement.

Link copied to clipboard

Unit of medication quantity.

Link copied to clipboard
enum Tester : Enum<Tester>

Who performed the glucose test.

Functions

Link copied to clipboard
fun Peripheral.glucoseMeasurementContexts(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<GlucoseMeasurementContext>

Observes Glucose Measurement Context notifications from the Glucose Service (0x1808).

Link copied to clipboard
fun Peripheral.glucoseMeasurements(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<GlucoseMeasurement>

Observes Glucose Measurement notifications from the Glucose Service (0x1808).

Link copied to clipboard

Parses a Glucose Feature characteristic value (0x2A51).

Link copied to clipboard

Parses a Glucose Measurement characteristic value (0x2A18).

Link copied to clipboard

Parses a Glucose Measurement Context characteristic value (0x2A34).

Link copied to clipboard
suspend fun Peripheral.readGlucoseFeature(): GlucoseFeature?

Reads the supported features of the Glucose Service (0x1808).