![]() |
Edge AI Add-on API 2.2.0
|
| size_t nrf_edgeai_obsv_encode | ( | nrf_edgeai_obsv_ctx_t * | ctx, |
| uint8_t * | buf, | ||
| size_t | max_len ) |
#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv.h>
Encode all metrics as a CBOR blob under the context lock.
Wire format is defined in obsv.cddl. Size buf for the worst-case encoded payload (see nrf_edgeai_obsv_encode.c for the formula).
Requires CONFIG_NRF_EDGEAI_OBSV_ENCODE.
| ctx | Initialized context. |
| buf | Output buffer. |
| max_len | Size of buf in bytes. |