![]() |
nrfxlib API 3.3.99
|
| void nrf_rpc_cmd_rsp_no_err | ( | const struct nrf_rpc_group * | group, |
| uint8_t | cmd, | ||
| uint8_t * | packet, | ||
| size_t | len, | ||
| const uint8_t ** | rsp_packet, | ||
| size_t * | rsp_len ) |
#include <nrf_rpc/include/nrf_rpc.h>
Send a command, get response as an output parameter and pass any error to an error handler.
See both nrf_rpc_cmd_rsp and nrf_rpc_cmd_no_err for more details on this variant of command send function.
| [in] | group | Group that command belongs to. |
| [in] | cmd | Command id. |
| [in] | packet | Packet allocated by nrf_rpc_alloc_tx_buf and filled with an encoded data. |
| [in] | len | Length of the packet. Can be smaller than allocated. |
| [out] | rsp_packet | Packet containing the response or NULL on error. |
| [out] | rsp_len | Length of rsp_packet. |