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: How to get task ID in app_connection.c

Tool/software:

Hi,

I am using SDK8.10, and modify on sample data_stream.

I am trying to modify mtu size with function GATT_ExchangeMTU, this function need a taskID, how can I get current task ID in app_connection.c?

  • Hello Xuefeng,

    Thanks for reaching out.

    You can use the function BLEAppUtil_getSelfEntity() to get the task ID.

    Example:

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

    BR,

    David.