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.

[参考译文] CC2650:如何在运行时更改 BLE 广播数据

Guru**** 1133960 points
Other Parts Discussed in Thread: LAUNCHXL-CC2650, CC2650
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1215623/cc2650-how-to-change-ble-advertisement-data-in-runtime

器件型号:CC2650

各位专家、您好!

我正在使用基于 Launchxl-CC2650设计的 CC2650定制 PCB。

BLE SDK 2_02_07_06

CCS7.4

编译器 TI Ver.5.2.6。

我的代码基于"simple_peripheral_cc2650lp_app"示例代码。

根据一些按钮操作、我想在没有 BLE 连接的情况下向 Android 应用发送一些数据  

请指导我如何更改广告数据?

谢谢你

Dnyaneshvar Salve

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

    尊敬的  Dnyaneshvar:

    通过使用 GAPROLE_advert_data 参数和 GAPRole_SetParameter ()函数调用,可以在运行时更改广播数据。 我建议在更改广告数据之前禁用广告、然后重新启用广告。 SDK 文档中包含的《BLE 软件开发人员指南》的第5.2.1节"外设角色"中显示了如何使用该函数的示例。

    此致、

    1月