![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_conn_handle_get | ( | uint16_t | peer_id, |
| uint16_t * | conn_handle ) |
#include <peer_manager.h>
Get the connection handle of the connection with a bonded peer.
| [in] | peer_id | The peer ID of the bonded peer. |
| [out] | conn_handle | Connection handle, or BLE_CONN_HANDLE_INVALID if none could be resolved. The conn_handle can refer to a recently disconnected connection. |
| NRF_SUCCESS | If the connection handle was retrieved successfully. |
| NRF_ERROR_NULL | If conn_handle was NULL. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |