battery_info_get_state_of_health()

Retrieve the state of health from a battery information structure.

Synopsis:

#include <bps/battery.h>
 
BPS_API int battery_info_get_state_of_health(battery_info_t *info)

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to get the state of health from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The battery_info_get_state_of_health() function retrieves the state of health from a battery_info_t structure. The state of health is reported as a percentage from 0 to 100.

Returns:

The state of health in percent or BPS_FAILURE if the battery was not ready.