This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change advertising params

Hi,

I'm using sdk 15.2, with soft device s140 on nrf52840 dongle in peripheral mode. I'm using modiffied ble_app_proximity example. What I wan't to achieve is to set advertising to general without timeout when there is bounded device. And when there is no bonding I want to have limited advertising. I tried to change the advertising params by running the ble_advertising_init after the bond is created (on PM_EVT_PEER_DATA_UPDATE_SUCCEEDED event in pm_evt_handler) but this causes the advertisement to not start again after disconnection of the peer. So what is the correct way of changing the advertisement parameters ?

Parents Reply Children
No Data
Related