Wait for the latest event from the sensor.
int sensor_wait_event(sensor_t *sensor, sensor_event_t *sensor_event, struct timeval *timeout)
The sensor to access.
A pointer to a location where the function can store the event retrieved from the sensor.
Pass a timeval to unblock after a certain period of time has elapsed, or pass NULL to block indefinitely.
This call will block until either data is available, or until the specified timeout period has passed. If timeout is NULL, this call will block indefinitely.
EOK on success, an errno value otherwise.
Last modified: 2013-12-21