![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_adv_peer_addr_reply | ( | struct ble_adv * | ble_adv, |
| const ble_gap_addr_t * | peer_addr ) |
#include <ble_adv.h>
Set the peer address for directed advertising.
The peer address can be set by the application upon receiving a BLE_ADV_EVT_PEER_ADDR_REQUEST event. If the application does not reply with a peer address, the device starts advertising in the next advertising mode.
| [in] | advertising | Advertising Module instance. |
| [in] | peer_addr | Pointer to a peer address. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_INVALID_STATE | Unexpected reply. No ongoing request for peer address. |
| NRF_ERROR_NULL | ble_adv is NULL. |
| NRF_ERROR_INVALID_PARAM | Invalid peer address. |