Other Parts Discussed in Thread: CC2640,
CC2640R2L是否有类似CC2640中 GAP_UpdateAdvertisingData(); 这样直接更新广播内容的函数?我在CC2640R2L SDK中没有找到该函数的定义。如果没有这种函数,那么该如何更新广播的内容数据?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
BLE5 stack中没有类似 GAP_UpdateAdvertisingData() 的单个函数来更新广播内容。但是我们可以尝试其他的方法来更新广播。
为了更新广播内容,客户需要使用 GapAdv_prepareLoadByHandle(),<链接> 和 GapAdv_loadByHandle() ,<链接>函数来更新数据。本质上,客户需要先调用 GapAdv_prepareLoadByHandle() 函数,修改 advertData 变量,然后调用 GapAdv_loadByHandle() 函数。
您可以点击相应链接查看文档来了解如何使用这些函数的具体说明。
希望能够帮助到您。