![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_register | ( | pm_evt_handler_t | event_handler | ) |
#include <peer_manager.h>
Register an event handler with the Peer Manager.
| [in] | event_handler | Callback for events from the Peer Manager module. event_handler is called for every event that the Peer Manager sends after this function is called. |
| NRF_SUCCESS | If initialization was successful. |
| NRF_ERROR_NULL | If event_handler was NULL. |
| NRF_ERROR_NO_MEM | If no more registrations can happen. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |