Report readings from a sensor in hardware-specific batch sizes.
BPS_API int sensor_set_batching(sensor_type_t type, bool enable_batching)
The sensor that should batch readings if supported.
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)
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.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2014-09-30