nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ pm_register()

uint32_t pm_register ( pm_evt_handler_t event_handler)

#include <peer_manager.h>

Register an event handler with the Peer Manager.

Parameters
[in]event_handlerCallback for events from the Peer Manager module. event_handler is called for every event that the Peer Manager sends after this function is called.
Return values
NRF_SUCCESSIf initialization was successful.
NRF_ERROR_NULLIf event_handler was NULL.
NRF_ERROR_NO_MEMIf no more registrations can happen.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.