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

◆ pm_id_addr_get()

uint32_t pm_id_addr_get ( ble_gap_addr_t * addr)

#include <peer_manager.h>

Retrieve the local Bluetooth identity address.

This function always returns the identity address, irrespective of the privacy settings. This means that the address type will always be either BLE_GAP_ADDR_TYPE_PUBLIC or BLE_GAP_ADDR_TYPE_RANDOM_STATIC.

Parameters
[out]addrPointer to the address structure to be filled in.
Return values
NRF_SUCCESSIf the address was retrieved successfully.
NRF_ERROR_NULLIf addr is NULL.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.