BatteryInfoLog

  • The device's battery information is represented in JSON format including battery status, power source, and battery percentage.

  • Battery status indicates whether the battery is full, charging, or in another state, as defined by the BatteryStatusLog enum.

  • Power source information reveals the current source of power for the battery, categorized by the PowerSourceLog enum.

  • Battery percentage is represented as a numerical value ranging from 0 to 100, reflecting the current battery level.

Information about the device's battery.

JSON representation
{
  "batteryStatus": enum (BatteryStatusLog),
  "powerSource": enum (PowerSourceLog),
  "batteryPercentage": number
}
Fields
batteryStatus

enum (BatteryStatusLog)

Status of the battery, whether full or charging, etc.

powerSource

enum (PowerSourceLog)

Status of battery power source.

batteryPercentage

number

Current battery percentage [0-100].