BatteryInfo

概述

电池相关信息。

起始版本: 3.1

相关模块:Battery

汇总

Public 属性

名称 描述
int capacity 表示电池的电量百分比。
int voltage 表示电池的电压。
int temperature 表示电池的温度。
int healthState 表示电池的健康状态,详情可参考BatteryHealthState
int pluggedType 表示电池的充电设备类型,详情可参考BatteryPluggedType
int pluggedMaxCurrent 表示电池的最大充电电流。
int pluggedMaxVoltage 表示电池的最大充电电压。
int chargeState 表示电池的充电状态,详情可参考BatteryChargeState
int chargeCounter 表示电池的充电次数。
int totalEnergy 表示电池的总容量。
int curAverage 表示电池的平均电流。
int curNow 表示电池的实时电流。
int remainEnergy 表示电池的剩余容量。
byte present 表示是否支持电池或者电池是否在位。
String technology 表示电池的技术型号。

类成员变量说明

capacity

int BatteryInfo::capacity

描述 表示电池的电量百分比。

chargeCounter

int BatteryInfo::chargeCounter

描述 表示电池的充电次数。

chargeState

int BatteryInfo::chargeState

描述 表示电池的充电状态,详情可参考BatteryChargeState

curAverage

int BatteryInfo::curAverage

描述 表示电池的平均电流。

curNow

int BatteryInfo::curNow

描述 表示电池的实时电流。

healthState

int BatteryInfo::healthState

描述 表示电池的健康状态,详情可参考BatteryHealthState

pluggedMaxCurrent

int BatteryInfo::pluggedMaxCurrent

描述 表示电池的最大充电电流。

pluggedMaxVoltage

int BatteryInfo::pluggedMaxVoltage

描述 表示电池的最大充电电压。

pluggedType

int BatteryInfo::pluggedType

描述 表示电池的充电设备类型,详情可参考BatteryPluggedType

present

byte BatteryInfo::present

描述 表示是否支持电池或者电池是否在位。

remainEnergy

int BatteryInfo::remainEnergy

描述 表示电池的剩余容量。

technology

String BatteryInfo::technology

描述 表示电池的技术型号。

temperature

int BatteryInfo::temperature

描述 表示电池的温度。

totalEnergy

int BatteryInfo::totalEnergy

描述 表示电池的总容量。

voltage

int BatteryInfo::voltage

描述 表示电池的电压。