sensor_interim_data_open()

Updated: April 19, 2023

Request a handle to access a logical interim data unit

Synopsis:

#include <sensor/sensor_interim_data.h>
sensor_error_t sensor_interim_data_open(sensor_interim_data_unit_t unit,
                                        sensor_handle_t *handle)

Arguments:

unit
The logical interim data unit to open, represented as a sensor_interim_data_unit_t value.
handle
A pointer to memory for storing the data unit handle if access is granted.

Library:

libsensor

Description:

This function provides a handle so you can either publish or subscribe to interim data.

Returns:

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