Part Number: CC2340R5
Hi,
If a timeout occurs for some reason during GATT service communication in the CC2340R5 environment, how will it be notified to the user code?
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.
Hi Hiro,
In generall you can find possible GATT events within the:
BLEAppUtil_GATTEventMaskFlags_e in bleapputil_api.h
these events are posted by TI BLE stack.
The reaction will be implemented and can be done similar as in our examples.
Are you working on a recent issue or are your questions just informal?
Regards,
Alex
Hi Alex,
Our customer decided to change the BLE IC in their existing equipment from another company's product to CC2340R5.
Therefore, we are working on porting the program for the existing device to the new device.
In existing devices, an event occurs when GATT times out.
I needed the user app to terminate the connection in that event.
Does a similar event exist in CC2340R5? I would also like to know if it is necessary for the user application to terminate the connection.
I checked BLEAppUtil_GATTEventMaskFlags_e, but it seemed that there was no event related to GATT timeout.
Hi Hiro,
Timeout in GATT operations are passed to the application through GATT messages (type gattMsgEvent_t). The filed hdr (type osal_event_hdr_t) of such messages contains a status (type uint8_t) set to bleTimeout in case a timeout has occurred.
I hope this will help,
Best regards,