Report readings from a sensor in hardware-specific batch sizes.
#include <bps/sensor.h>
BPS_API int sensor_set_batching(sensor_type_t type,
bool enable_batching)
BlackBerry 10.2.0
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.
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.