nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_rpc_evt()

int nrf_rpc_evt ( const struct nrf_rpc_group group,
uint8_t  evt,
uint8_t *  packet,
size_t  len 
)

#include <nrf_rpc/include/nrf_rpc.h>

Send an event.

Parameters
groupGroup that event belongs to.
evtEvent id.
packetPacket allocated by nrf_rpc_alloc_tx_buf and filled with an encoded data.
lenLength of the packet. Can be smaller than allocated.
Returns
0 on success or negative error code if a transport layer reported a sending error.