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: GATT_Indication example

Part Number: CC2340R5

Dear TI team,

I am working on data_stream example and I have added a GATT characteristic with an Indicate property. According to the documentation, for sending an indication, I have to use:

bStatus_t GATT_Indication ( uint16 connHandle, attHandleValueInd_t * pInd, uint8 authenticated, uint8 taskId). For checking the confirmation message from the client, I have to receive the GATT_MSG_EVENT message from the specified task. Do I have to create a new task for receive the specified value? Do you have any example receiving the GATT_MSG_EVENT in the created task? I need to see and undertand the mechanics of GATT_Indication API with some examples.

Thank you for your help.

  • Hi Eduard,

    You don’t have to create a new task to receive the GATT_MSG_EVENT message, you can use the BLEAppUtil_getSelfEntity() to get the current task's ID, additionally you can use INVALID_TASK_ID to not receive the GATT_MSG_EVENT message.

    Take look at the health_thermometer example in the basic_ble_profiles project, especially at the HTS_sendInd function inside services/health_thermometer/health_thermometer_server.c

    I hope this will help,

    Regards