sensor_set_reduced_reporting()

Enable or disable reduced reporting.

Synopsis:

#include <sensor/libsensor.h>
 
int sensor_set_reduced_reporting(sensor_t *sensor, bool enable)

Arguments:

sensor

The sensor to modify.

enable

1 to enable reduced reporting, or 0 to disable it.

Library:

libsensor

Description:

When reduced reporting is enabled, only a significant change between the last read event and the current unread event will cause an event to be delivered to the thread (e.g., duplicates are skipped, as are sensor changes that are insignificant). This is useful for clients who are only interested in significant changes. As the sensor will not be streaming data, enabling this feature will save power.

Returns:

EOK on success, an errno value otherwise.

Last modified: 2013-12-21

comments powered by Disqus