sensor_set_queue()

Enable or disable the sensor queue.

Synopsis:

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

Arguments:

sensor

The sensor to modify.

enable

1 to enable the queue, or 0 to disable it.

Library:

libsensor

Description:

Enabling the queue creates a client-specific service side queue of events. This is useful for clients wishing to not miss any events.

Returns:

EOK on success, an errno value otherwise.

Last modified: 2013-12-21

comments powered by Disqus