Update LoopHub.kt: add iob, cob, tbr val

This commit is contained in:
swissalpine 2023-11-26 12:34:43 +01:00 committed by GitHub
parent e29d8f59f9
commit beac0ecf1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,12 @@ interface LoopHub {
/** Returns the remaining bolus insulin on board. */
val insulinOnboard: Double
/** Returns the remaining bolus and basal insulin on board. */
val insulinTotalOnboard: Double
/** Returns the remaining carbs on board. */
val carbsOnboard: Double?
/** Returns true if the pump is connected. */
val isConnected: Boolean
@ -29,6 +35,9 @@ interface LoopHub {
/** Returns the factor by which the basal rate is currently raised (> 1) or lowered (< 1). */
val temporaryBasal: Double
/** Returns the temporary basal rate in percent */
val temporaryBasalPercent: String
/** Tells the loop algorithm that the pump is physically connected. */
fun connectPump()