Updated: October 28, 2024 |
Prototype for a callback function that receives sensor status updates
#include <sensor/sensor_api.h>
typedef void(* sensor_status_callback_t)(sensor_handle_t handle, sensor_devstatus_t status, uint16_t extra, void *arg);
This callback function is invoked when the status of the sensor changes for the sensor event that you've registered for. Register a callback function of this type by calling sensor_register_status_callback().
Return true if successful, otherwise false.