sensor_request_events()
Start receiving sensor events.
Synopsis:
#include <bps/sensor.h>
BPS_API int sensor_request_events(sensor_type_t type)
Arguments:
- type
- The types of events to deliver. You can use the values that are defined in the sensor_type_t enumeration to specify the sensor events to deliver.
Library:
libbpsDescription:
The sensor_request_events() function starts to deliver sensor events to the application using BPS.
Returns:
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.