BatteryStatistics

data class BatteryStatistics(val batteryStatus: BatteryStatistics.BatteryStatus, val batteryVoltage: Int, val mcuTemperature: Int, val batteryMinVoltage: Int, val batteryMinTemperature: Int, val batteryResetTimestamp: Long, val mcuMaxTemperature: Int, val mcuMinTemperature: Int)

Represents battery statistics information

Constructors

Link copied to clipboard
constructor(batteryStatus: BatteryStatistics.BatteryStatus, batteryVoltage: Int, mcuTemperature: Int, batteryMinVoltage: Int, batteryMinTemperature: Int, batteryResetTimestamp: Long, mcuMaxTemperature: Int, mcuMinTemperature: Int)

Types

Link copied to clipboard

Whether the battery still has usable charge.

Link copied to clipboard
object Companion

Helpers for reading battery statistics off a device.

Properties

Link copied to clipboard

microcontroller temperature in degrees Celsius (while the minimum voltage was reached)

Link copied to clipboard

lowest battery voltage seen since the last reset, in mV

Link copied to clipboard

battery reset timestamp

Link copied to clipboard
Link copied to clipboard

battery voltage in mV

Link copied to clipboard

global maximum microcontroller temperature in degrees Celsius

Link copied to clipboard

global minimum microcontroller temperature in degrees Celsius

Link copied to clipboard

microcontroller temperature in degrees Celsius