nrfxlib API 0.1.0
|
|
inlinestatic |
#include <nrf_rpc/include/nrf_rpc.h>
Send a command and get response as an output parameter.
This variant of command send function outputs response as an output parameter. Caller is responsible to call nrf_rpc_decoding_done with a response packet just after response packet was decoded and can be deallocated.
[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 . |