#include <ble_gap.h>
Get the Bluetooth device address used by the advertiser.
- Note
- This function will return the local Bluetooth address used in advertising PDUs. When using privacy, the SoftDevice will generate a new private address every ble_gap_privacy_params_t::private_addr_cycle_s configured using sd_ble_gap_privacy_set. Hence depending on when the application calls this API, the address returned may not be the latest address that is used in the advertising PDUs.
- Parameters
-
| [in] | adv_handle | The advertising handle to get the address from. |
| [out] | p_addr | Pointer to address structure to be filled in. |
- Return values
-