Edge AI Add-on API 2.3.0
Loading...
Searching...
No Matches

◆ data_fwd_sensor_stop()

int data_fwd_sensor_stop ( void )

#include <samples/data_forwarder/src/sensor/data_fwd_sensor.h>

Stop sensor sampling.

Disables periodic sampling in the selected sensor driver. Implementations stop the fetch timer and reset the internal sample-ready semaphore with k_sem_reset(), clearing any pending tick signalled before stop.

Note
Do not call this while data_fwd_sensor_fetch() is blocked in another context: k_sem_reset() aborts outstanding takes with -EAGAIN.
Return values
0Success.
-errnoNegative error code on failure.