![]() |
Edge AI Add-on API 2.2.0
|
| size_t nrf_edgeai_obsv_encode_cbor | ( | nrf_edgeai_obsv_core_t * | state, |
| uint8_t * | buf, | ||
| size_t | max_len ) |
#include <lib/nrf_edgeai_obsv/nrf_edgeai_obsv_encode.h>
Encode observability state and metrics as CBOR (no mutex).
Wire format is defined in obsv.cddl. On Zephyr, prefer Observability CBOR encoding (buffer sizing) on nrf_edgeai_obsv_ctx_t* so the context mutex serializes with inference.
| state | Initialized portable state with registered metrics. |
| buf | Output buffer. |
| max_len | Size of buf. |
buf and max_len.