sensor_event_get_temperature()

Retrieve the temperature from a SENSOR_TEMPERATURE_READING event.

Synopsis:

#include <bps/sensor.h>
 
BPS_API float sensor_event_get_temperature(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The SENSOR_TEMPERATURE_READING event to get the temperature from.

Library:

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

Description:

The sensor_event_get_temperature() function gets the temperature from the specified SENSOR_TEMPERATURE_READING event.

Returns:

The temperature (in degrees Celsius). NaN in the event of an error.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus