- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
If I want to alternate advertising payloads, what is the best way to do that?
Can I just update cyBle_discoveryModeInfo.advData from a timer and the stack will send the new contents or is that unsafe and should I stop/start using functions like CyBle_GappStartAdvertisement?
We need to send some Manufacturing data in one advertisement and Name in another due to the space constraints of the packets.
Thanks
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just found CyBle_GapUpdateAdvData.
This API function must be called when API function CyBle_GetBleSsState()
returns CYBLE_BLESS_STATE_EVENT_CLOSE state.
So I guess I'll try this from a timer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just found CyBle_GapUpdateAdvData.
This API function must be called when API function CyBle_GetBleSsState()
returns CYBLE_BLESS_STATE_EVENT_CLOSE state.
So I guess I'll try this from a timer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can refer the below code example.
-Gyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Gyan, I did get it working using the same pattern as that example which uses CyBle_GapUpdateAdvData.