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

Can we change BLE advertisement settings while ADV is ongoing, without stopping it?

I would like to advertise two different sets of data in parallel, such that one ADV packet is ongoing (say, A), and then I switch to the other packet (say, B) with different ADV settings. I know that we can change ADV data on the fly, but I would like to change ADV settings (such as: A is doing non-connectable ADV with 10 second timeout, whereas B is doing connectable ADV with 2 second timeout).

Is it possible to change such ADV parameters on-the-fly, such that I don't have to stop and start ADV?

I am using SDK 11.0 with nRF51822, alongwith s130 softdevice.

Parents Reply
  • FormerMember
    0 FormerMember in reply to FormerMember

    Yes, you can change adv timeout and adv type as well, since they are also parameters in sd_ble_gap_adv_data_set(..). If setting a new timeout, I would recommend you to test how that timeout is applied, if the timer is reset when setting a new advertising timeout or if the counting is continued. For testing, new advertising data can be set upon a button push. You can then measure the time it takes for the advertiser to time out.

Children
No Data
Related