BatteryGauge

data class BatteryGauge(val voltageMv: Float, val currentMa: Float, val healthPct: Float?, val chargeLevelPct: Float?)

Fuel-gauge reading from the device's "full battery info" characteristics. Read on demand via DeviceSession.readBatteryGauge; distinct from the coarse SIG Battery Level percentage carried on DeviceSession.battery.

The device serves millivolts and milliamperes.

Constructors

Link copied to clipboard
constructor(voltageMv: Float, currentMa: Float, healthPct: Float?, chargeLevelPct: Float?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

state-of-charge 0..100 (the status characteristic's level byte), or null when the status characteristic is absent/short.

Link copied to clipboard

pack current in mA; negative while discharging, positive while charging.

Link copied to clipboard

battery health 0..100, or null when the health characteristic is absent/short.

Link copied to clipboard

pack voltage in mV.