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.

[参考译文] CC2340R5:如何在 app_connection.c 中获取任务 ID

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1439563/cc2340r5-how-to-get-task-id-in-app_connection-c

工具与软件:

您好!

我使用 SDK8.10、并对样本 data_stream 进行修改。

我正在尝试使用函数 GATT_ExchangeMTU 修改 MTU 大小 、此函数需要 taskID、如何在 app_connection.c 中获取当前任务 ID?

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

    您好 Xuefeng:

    感谢您的咨询。

    可以使用函数 BLEAppUtil_getSelfEntity()来获取任务 ID。

    示例:

    GATT_ExchangeMTU(gapEstMsg->connectionHandle, &req, BLEAppUtil_getSelfEntity());

    BR、

    David。