nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_rpc_err()

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.

Parameters
codeNegative error code.
srcSource of error.
groupGroup where error happens or NULL if unknown.
idCommand or event id which caused the error or NRF_RPC_ID_UNKNOWN if unknown.
packet_typeType of packet related to this error.