sensor_disable_data_callback()

Updated: April 19, 2023

Disable a data callback

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_disable_data_callback(sensor_handle_t handle,
                                            sensor_event_t event,
                                            sensor_data_callback_t callback)

Arguments:

handle
The handle that's returned from calling sensor_open().
event
A sensor_event_t value indicating the event associated with the callback.
callback
A sensor_data_callback_t value indicating the callback to disable.

Library:

libsensor

Description:

This function lets you disable a data callback registered using sensor_register_data_callback().

Returns:

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