Part Number: CC2652R
Other Parts Discussed in Thread: SYSCONFIG
Hi!
I'm trying to create a simple peripheral device that can change the advertising data automatically. Long term, I would like to advertise some sensor data.
I tried to follow to steps mentioned on that link (Bluetooth Low Energy 5 Scanning and Advertising Basics) but looks like I can modify the data only 1 time. I would like to know I you can help me. As mentioned in the link, I added my code in "case GAP_EVT_ADV_START_AFTER_ENABLE:" of "SimplePeripheral_processAdvEvent()" I'm using the simple peripheral code of SimpleLink CC13xx CC26xx SDK 7.10.02.23.
Here is a picture of my code: /resized-image/__size/698x758/__key/communityserver-discussions-components-files/538/Screenshot-2024_2D00_01_2D00_22-161924.png
As you can see, each time I'm coming to this case i'm incrementing a variable that should be advertise (advertData2[11] = test_loop2;). I can see the variable beeing incremented but when preparing to load the buffer again, I'm getting a status bleGAPNotFound.
So sum up, I'd like to understand how to advertise some dynamic data.
Thanks,
Jonathan