BatteryInfo


BatteryInfo

概述

电池相关信息。

Since:

3.1

相关模块:

Battery

汇总

Public 属性

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

类成员变量说明

capacity

int BatteryInfo::capacity
1

描述:

表示电池的电量百分比。

chargeCounter

int BatteryInfo::chargeCounter
1

描述:

表示电池的充电次数。

chargeState

int BatteryInfo::chargeState
1

描述:

表示电池的充电状态。

curAverage

int BatteryInfo::curAverage
1

描述:

表示电池的平均电流。

curNow

int BatteryInfo::curNow
1

描述:

表示电池的实时电流。

healthState

int BatteryInfo::healthState
1

描述:

表示电池的健康状态。

pluggedMaxCurrent

int BatteryInfo::pluggedMaxCurrent
1

描述:

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

pluggedMaxVoltage

int BatteryInfo::pluggedMaxVoltage
1

描述:

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

pluggedType

int BatteryInfo::pluggedType
1

描述:

表示电池的充电设备类型。

present

byte BatteryInfo::present
1

描述:

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

remainEnergy

int BatteryInfo::remainEnergy
1

描述:

表示电池的剩余容量。

technology

String BatteryInfo::technology
1

描述:

表示电池的技术型号。

temperature

int BatteryInfo::temperature
1

描述:

表示电池的温度。

totalEnergy

int BatteryInfo::totalEnergy
1

描述:

表示电池的总容量。

voltage

int BatteryInfo::voltage
1

描述:

表示电池的电压。