Set a sensor's refresh rate.
BPS_API int sensor_set_rate(sensor_type_t type, unsigned int rate)
The sensor to set the refresh rate for.
The rate to set (in microseconds).
The sensor_set_rate() function sets the rate at which the specified sensor should provide updates. The device attempts to achieve the specified rate, but this is not guaranteed; the sensor might provide updates more frequently or less frequently than the specified rate. The rate that you specify here corresponds roughly to the number of sensor events that are delivered to the event queue for your application.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2013-09-30