nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_rpc_setup()

int nrf_rpc_setup ( nrf_rpc_err_handler_t err_handler,
nrf_rpc_group_bound_handler_t bound_handler )

#include <nrf_rpc/include/nrf_rpc.h>

Initialize the nRF RPC internal state.

Sets up all variables related to nRF RPC, including contexts, groups, and transports. It does not initiate any communication with the peer.

Note
This function can be invoked multiple times; however, only the first call has an effect.
This function is not thread-safe and should not be called concurrently from multiple threads.
Warning
This function is experimental and subject to change or removal without prior notice.
Parameters
err_handlerError handler that will be called to report an error in the nRF RPC.
bound_handlerBound handler that will be called when a group is bound with the peer.
Returns
0 on success or negative error code.