nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_rpc_decoder_invalid()

void nrf_rpc_decoder_invalid ( struct nrf_rpc_cbor_ctx *  ctx,
int  err 
)

#include <include/nrf_rpc/nrf_rpc_serialize.h>

Put decoder into an invalid state and set error code that caused it. All further decoding on this decoder will be ignored. Invalid state can be checked with the nrf_rpc_decode_valid() function.

Parameters
[in]ctxCBOR decoding context.
[in]errCbor error code to set.