battery_info_get_battery_id()

Retrieve the battery ID.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to get the battery ID from.

Library:

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

Description:

The battery_info_get_battery_id() function retrieves the battery ID from a battery_info_t structure.

Returns:

The battery ID or BPS_FAILURE if the battery was not ready.