- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to create a BLE Broadcaster node that publishes the Time Service once a minute using only Advertiser packets only. Is there a code example?
Note: I do not want to support connections on this node. I realize that I can supply a UIDD with data as part of the Advertiser packet. I also have already created an Observer-only BLE node that can decode the advertisement data.
Len
"Engineering is an Art. The Art of Compromise."
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Len,
Have you gone through this Dynamic Broadcaster (Day 009) code example in the below link?
PSoC-4-BLE/100_Projects_in_100_Days at master · cypresssemiconductorco/PSoC-4-BLE · GitHub
Hope it helps ! If not please update the thread.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Len,
Have you gone through this Dynamic Broadcaster (Day 009) code example in the below link?
PSoC-4-BLE/100_Projects_in_100_Days at master · cypresssemiconductorco/PSoC-4-BLE · GitHub
Hope it helps ! If not please update the thread.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ganesh,
Thank you. I'll check it out. I'll have to convert it to PSoC6 but the principles should be there for the most part.
I did find information about changing the advertisement data such as code frags below that appear to work:
*((uint32_t *)&cy_ble_discoveryData[config_idx].advData[CY_BLE_ADV_PKT_0_INDEX_SERVICE_DATA_IMMEDIATE_ALERT+4]) = adv_count; // change the intended data.
Cy_BLE_GAPP_UpdateAdvScanData(&cy_ble_discoveryModeInfo[config_idx]); // Signal the new advData to the BLE stack.
Len.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ganesh,
The PSoC4 API (CyBle_GapUpdateAdvData() ) is a little different than the PSoC6 BLE API (Cy_BLE_GAPP_UpdateAdvScanData() ) but basically the same.
Thanks.
Len
"Engineering is an Art. The Art of Compromise."