nrfxlib API 0.1.0
|
int nrf_rpc_cbor_cmd | ( | 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 and provide callback to handle response.
group | Group that command belongs to. |
cmd | Command id. |
ctx | Context allocated by NRF_RPC_CBOR_ALLOC. |
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 . |