Updated: October 28, 2024 |
Disable a registered event
#include <sensor/sensor_api.h>
sensor_error_t sensor_disable_event(sensor_handle_t handle, sensor_eventkey_t key)
This function lets you disable a registered event enabled using sensor_enable_event().
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.