Hi,
In most of the peripheral applications, I see that an update adv data timer is used and after 10 seconds it restarts the advertisement. Is this correct?
I want to know, if this is necessary everytime?
Our setup is such that DA14580 is connected to external MCU over UART and it receives the BLE commands over UART.
In this case, can I completely eliminate the use of udpate timer and instead add an API to stop advertisement separately.
This stop advertisement API would have the call to app_easy_gap_advertise_stop(); Does this seem correct?
So, what will happen is, the advertisement will go through continuously when I do not require any change in advertisement data and when an update is to be done, we will stop and start the advertisement.
Device:
Hi dhrishi,
You are right about the advertising data timer, it restarts every 10 seconds (you can choose it’s value).It’s not necessary to use the timer, the time out of the advertising is optional. You can advertise for example until the battery times out. You can simply stop the advertisement by calling the app_easy_gap_advertise_stop function at the point you like in your implementation. The advertising procedure doesn’t time out in unless it is instructed otherwise.
Thanks,
STS_Dialog