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

◆ nrf_edgeai_obsv_for_each_metric()

int nrf_edgeai_obsv_for_each_metric ( nrf_edgeai_obsv_ctx_t * ctx,
nrf_edgeai_obsv_metric_cb_t cb,
void * user )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv.h>

Iterate over all registered metrics under the context lock.

Parameters
ctxInitialized context.
cbCallback invoked once per metric snapshot. Return false to stop early.
userOpaque pointer forwarded to cb.
Returns
0 on success, -EINVAL if ctx or cb is NULL.