sensor_event_get_accuracy()

Get the accuracy of a sensor reading.

Synopsis:

#include <bps/sensor.h>
 
BPS_API sensor_accuracy_t sensor_event_get_accuracy(bps_event_t *event)

Arguments:

event
The sensor event to get the accuracy of.

Library:

libbps

Description:

The sensor_event_get_accuracy() function gets the accuracy of the specified sensor event. The sensor's accuracy is returned with each sensor reading event. The sensor_accuracy_t structure defines the possible levels of accuracy of sensor readings.

Returns:

The accuracy of the sensor reading.