battery_info_get_battery_temperature()

Retrieve the battery temperature.

Synopsis:

#include <bps/battery.h>
 
BPS_API float battery_info_get_battery_temperature(battery_info_t *info)

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the battery temperature from.

Library:

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

Description:

The battery_info_get_battery_temperature() function retrieves the battery temperature from a battery_info_t structure. The battery temperature is reported in degrees Celsius.

Returns:

The battery temperature or not-a-number (NaN) if the battery temperature is not available.