sensor_set_batching()

Report readings from a sensor in hardware-specific batch sizes.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_set_batching(sensor_type_t type,
                                bool enable_batching)

Since:

BlackBerry 10.2.0

Arguments:

type

The sensor that should batch readings if supported.

enable_batching

If true and if it is supported by the hardware, sensor readings will be batched. Once a hardware specific threshold is reached, readings will be reported to the app.

Library:

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

Description:

When enabled and supported by the hardware, readings will be batched together. The readings are held in a hardware queue until a threshold is reached. Once the threshold is reached, all queued sensor events will be delivered at once.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



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

comments powered by Disqus