![]() |
nrfxlib API 3.4.99
|
| int nrf_rpc_stop | ( | bool | cleanup | ) |
#include <nrf_rpc.h>
Temporarily suspend all RPC communication.
Calling this function automatically fails all communication until nrf_rpc_resume is called. It also causes all pending commands to fail immediately.
| cleanup | set to true to also invoke all the custom cleanup handlers. |
| 0 | on success. |
| -NRF_EALREADY | when RPC is already stopped or stopping. |
| -NRF_ETIMEDOUT | when waiting for in-flight RPC processing to complete times out and assertions are disabled. |