sensor_disable_event()

Updated: April 19, 2023

Disable a registered event

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_disable_event(sensor_handle_t handle,
                                    sensor_eventkey_t key)

Arguments:

handle
The handle that's returned from calling sensor_open().
key
A sensor_eventkey_t containing the key returned by a call to the sensor_enable_event() function.

Library:

libsensor

Description:

This function lets you disable a registered event enabled using sensor_enable_event().

Returns:

SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.