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.

[参考译文] CCS/CC2640:更新每个广播的广播数据

Guru**** 2587365 points
Other Parts Discussed in Thread: CC2640, CC2650

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/597753/ccs-cc2640-update-advertisement-data-for-each-advertisement

器件型号:CC2640
Thread 中讨论的其他器件: CC2650

工具/软件:Code Composer Studio

各位专家、您好!

我正在使用 CC2650 LP 和 CC2640定制板。 我想在广播数据中添加温度传感器读数。 同时、我希望只有在广播开始时才调用温度传感器。  

请告诉我、我应该在哪里添加以下 GAPRole 函数来更新新的广告数据?

GAPRole_SetParameter (GAPROLE_adverted_data、sizeof (advertData)、advertData); 

非常感谢!

最棒的

建林

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    最简单的方法是在从温度传感器读取新值时调用"GAPRole_SetParameter (GAPROLE_advert_data、sizeof (advertData)、advertData);"。