nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_rpc_cbor_cmd_no_err()

void nrf_rpc_cbor_cmd_no_err ( const struct nrf_rpc_group * group,
uint8_t cmd,
struct nrf_rpc_cbor_ctx * ctx,
nrf_rpc_cbor_handler_t handler,
void * handler_data )

#include <nrf_rpc/include/nrf_rpc_cbor.h>

Send a command, provide callback to handle response and pass any error to an error handler.

This variant of command send function returns void, so sending error returned from the transport layer is passed to the error handler. Source of error is NRF_RPC_ERR_SRC_SEND.

Parameters
groupGroup that command belongs to.
cmdCommand id.
ctxContext allocated by NRF_RPC_CBOR_ALLOC.
handlerCallback that handles the response. In case of error (e.g. malformed response packet was received) it is undefined if the handler will be called.
handler_dataOpaque pointer that will be passed to handler.