start_streaming()

Start streaming

Synopsis:

#include <sensor/external_sensor_api.h>
int start_streaming(void *handle)

Arguments:

handle
The handle that's returned from calling the open_external_sensor() function.

Library:

libsensor

Description:

Called when streaming should be started. This function configures the sensor to start producing data packets that are consumed by an upper-layer thread, which repeatedly calls into the blocking get_packet() function.

Returns:

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