![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [out] | addr | Pointer to the address structure to be filled in. |
| NRF_SUCCESS | If the address was retrieved successfully. |
| NRF_ERROR_NULL | If addr is NULL. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |