![]() |
nrfxlib API 3.3.99
|
| void nrf_rpc_err | ( | int | code, |
| enum nrf_rpc_err_src | src, | ||
| const struct nrf_rpc_group * | group, | ||
| uint8_t | id, | ||
| uint8_t | packet_type ) |
#include <nrf_rpc/include/nrf_rpc.h>
Report an error to nRF RPC error handler.
This function allows the serialization layer (such as zcbor) to report errors to the same error handler as nRF RPC.
| code | Negative error code. |
| src | Source of error. |
| group | Group where error happens or NULL if unknown. |
| id | Command or event id which caused the error or NRF_RPC_ID_UNKNOWN if unknown. |
| packet_type | Type of packet related to this error. |