Retrieve pressure sensor history.
#include <sensor/libsensor.h>
int sensor_history_pressure(sensor_history_pressure_data_t *data)
BlackBerry 10.1.0
The structure to populate with pressure sensor events.
This function populates the passed in sensor_history_pressure_data_t structure with the most recently recorded pressure sensor events.
sensor_history_pressure_data_t data = { 0 };
sensor_history_pressure(&data);
int i;
for (i = 0; i < sizeof(data.element) / sizeof(*data.element); i++) {
printf("Pressure: %f\n", data.element[i].pressure);
}
EOK on success, an errno value otherwise.