sensor_set_reduced_reporting()

Enable or disable reduced reporting.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

sensor

The sensor to modify.

enable

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

Library:

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

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: 2014-05-14



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

comments powered by Disqus