![]() |
Edge AI Add-on API 2.2.0
|
| #define NRF_EDGEAI_OBSV_ENCODE_MAX_SIZE |
#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_encode_sizes.h>
Largest encoded observability CBOR payload (bytes) for one context.
Covers the built-in metrics at their Kconfig dimensions plus the fixed outer document. For custom metrics, set CONFIG_NRF_EDGEAI_OBSV_EXTRA_ENCODE_BYTES to the sum of NRF_EDGEAI_OBSV_ENCODE_METRIC_SIZE values for all custom metrics. Observability CBOR encoding (buffer sizing) returns 0 when the buffer is too small.