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

◆ pm_conn_handle_get()

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.

Parameters
[in]peer_idThe peer ID of the bonded peer.
[out]conn_handleConnection handle, or BLE_CONN_HANDLE_INVALID if none could be resolved. The conn_handle can refer to a recently disconnected connection.
Return values
NRF_SUCCESSIf the connection handle was retrieved successfully.
NRF_ERROR_NULLIf conn_handle was NULL.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.