![]() |
nrfxlib API 3.3.99
|
| void nrf_rpc_cmd_no_err | ( | const struct nrf_rpc_group * | group, |
| uint8_t | cmd, | ||
| uint8_t * | packet, | ||
| size_t | len, | ||
| nrf_rpc_handler_t | handler, | ||
| void * | handler_data ) |
#include <nrf_rpc/include/nrf_rpc.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.
| group | Group that command belongs to. |
| cmd | Command id. |
| packet | Packet allocated by nrf_rpc_alloc_tx_buf and filled with an encoded data. |
| len | Length of the packet. Can be smaller than allocated. |
| handler | Callback 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_data | Opaque pointer that will be passed to handler. |