sensor_event_get_pressure()

Retrieve the air pressure from a SENSOR_PRESSURE_READING event.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

event

The SENSOR_PRESSURE_READING event to get the air pressure from.

Library:

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

Description:

The sensor_event_get_pressure() function gets the air pressure from the specified SENSOR_PRESSURE_READING event.

Returns:

The pressure (in pascals). 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