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

◆ ble_adv_peer_addr_reply()

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.

Parameters
[in]advertisingAdvertising Module instance.
[in]peer_addrPointer to a peer address.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_INVALID_STATEUnexpected reply. No ongoing request for peer address.
NRF_ERROR_NULLble_adv is NULL.
NRF_ERROR_INVALID_PARAMInvalid peer address.