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:cc2650 ble 中的按钮中断

Guru**** 2551110 points
Other Parts Discussed in Thread: CC2650

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/855278/cc2650-button-interrupt-in-cc2650-ble

器件型号:CC2650

大家好、

现在、我正在使用 cc2650 BLE 堆栈、BLE 正在持续发现、但我想在按下按钮时产生按钮中断 BLE 应该会发现这是可能的?

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

    是的,这是可能的。 您可以使用以下代码在触发中断时开始广播。

    uint8_t advertEnabled = true;

    GAPRole_SetParameter (GAPROLE_Adverte_enabled、sizeof (uint8_t)、

                  advertEnabled (advertEnabled)(&D);