- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've seen threads that discuss the interval for advertisements using blecm_startAdv() but there is no mention about how long the device advertises for every interval. Is it just as long as it takes to transmit all the bytes in the adv packet?
By using bleprofile_Discoverable() we can use the builtin state machine and that has a duration setting but how can we set duration when using blecm_startAdv()?
Solved! Go to Solution.
- Labels:
-
SDK 2.X
-
WICED Sense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The duration of the advertisement transmission will be the time required to broadcast the payload and overheads.
Can I refer you to the usage of the blecm_startAdv() in mybeacon.c?
Is it what you are looking for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The duration of the advertisement transmission will be the time required to broadcast the payload and overheads.
Can I refer you to the usage of the blecm_startAdv() in mybeacon.c?
Is it what you are looking for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks that's actually what I expected it to be. So since bleprofile_Discoverable() runs a state machine that includes calls to blecm_startAdv(), does bleprofile_Discoverable() just repeatedly make calls to blecm_startAdv() to extend the advertising duration per interval and make use of the "duration" value in the configuration?