Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bonding and directed advertising

Hello,

I have an application where a BLE central connects to a BLE peripheral. Then the devices do the bonding procedure. After the devices are bonded the peripheral should only do directed advertising to that one central.

So far I can get the devices to bond but after they disconnect and the peripheral should start directed advertising my program fails at the sd_ble_gap_adv_set_configure call with an NRF_ERROR_INVALID_PARAM error. The parameters include a random static address as peer address and PHY coded. Whitelist is not used.

What could be the problem there?

  • nRF5 SDK 17.0.2
  • Softdevice 7.2.0

Thanks in advance!

Parents Reply Children
Related