![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_peer_id_get | ( | uint16_t | conn_handle, |
| uint16_t * | peer_id ) |
#include <peer_manager.h>
Retrieve the ID of a peer, given its connection handle.
| [in] | conn_handle | The connection handle of the peer. |
| [out] | peer_id | The peer ID, or PM_PEER_ID_INVALID if the peer is not bonded or conn_handle does not refer to a valid connection. |
| NRF_SUCCESS | If the peer ID was retrieved successfully. |
| NRF_ERROR_NULL | If peer_id was NULL. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |