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

◆ nrf_rpc_rsp_decode_uint()

void nrf_rpc_rsp_decode_uint ( const struct nrf_rpc_group *  group,
struct nrf_rpc_cbor_ctx *  ctx,
void *  result,
size_t  result_size 
)

#include <include/nrf_rpc/nrf_rpc_serialize.h>

Decode a command response as an unsigned integer value.

On decoding failure, this function triggers the nRF RPC error handler. It then sets the result to zero, ensuring consistent output in error scenarios.

Parameters
[in]groupnRF RPC group.
[in,out]ctxCBOR decoding context.
[in]resultPointer to an integer variable to store the result.
[in]result_sizeSize of the integer variable to store the result.