Retrieve the temperature from a SENSOR_TEMPERATURE_READING event.
#include <bps/sensor.h>
BPS_API float sensor_event_get_temperature(bps_event_t *event)
BlackBerry 10.0.0
The SENSOR_TEMPERATURE_READING event to get the temperature from.
The sensor_event_get_temperature() function gets the temperature from the specified SENSOR_TEMPERATURE_READING event.
The temperature (in degrees Celsius). NaN in the event of an error.