i need a help to solve this issue.
i need a help to solve this issue.
Hi oumaima02,
If you are using the nRF Connect SDK, please look into the function bt_le_adv_update_data().
If you are using the nRF5 SDK, please refer to this blog post: How to update advertising data dynamically using BLE Advertising library .
Hieu
Hi oumaima02,
If you are using the nRF Connect SDK, please look into the function bt_le_adv_update_data().
If you are using the nRF5 SDK, please refer to this blog post: How to update advertising data dynamically using BLE Advertising library .
Hieu
thanks for ur reply but first i have a problem of how to restart advertising after stopping by using sd_ble_gap_adv_stop();
You almost always can restart advertising with the same function you use to start advertising the first time. If you are using the Advertising Module, apparent by the use of ble_advertising_start(), then please keep in mind that it also has its own advertising timeout mechanism that stops advertising after a configurable amount of time.
As a reference, though not directly, I answered how not to automatically restart advertising in this DevZone question: I want to stop being auto-registered. .