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.

LAUNCHXL-CC2640R2: GAP event after ongoing connection request has been terminated

Part Number: LAUNCHXL-CC2640R2

Hello,

We are currently working on a project with the following details:

Device CC2640R2LAUNCHXL
SDK simplelink_cc2640r2_sdk_4_20_00_04
IDE IAR8.32.2
Reference Project

Multirole

In order to cancel an ongoing connection request, we use GAP_CONNHANDLE_INIT(0xFFFE) to terminate the process.
In my test procedures, I tried to simulate this scenario and have noticed that GAP event received is  GAP_LINK_ESTABLISHED_EVENT with gap hdr status as FAILURE.

I would like to confirm if this observation is correct and expected. Also, will there be any connection handle updated in the GAP event callback data?

Thank you.

Regards,
Mohini

  • Hey Mohini,

    Thanks for posting.

    I would like to confirm if this observation is correct and expected

    Yes, the stack will still send that event. You are on the right track by checking the status, which is a failure as we expect since the connection was not established.

    Also, will there be any connection handle updated in the GAP event callback data?

    Can you rephrase this question? I'm afraid I don't follow.

  • Hello Ammar,

    Thanks for the prompt reply and confirmation to my first question!
    For the second question, when we get the GAP_LINK_ESTABLISHED_EVENT callback, is it expected for the connection handle under the gapEstLinkReqEvent_t linkCmpl event to be updated?

    Thanks,
    Mohini

  • Hey Mohini,

    From what I can tell, I don't think the stack will forward a valid connection handle inside the callback event (I would expect it to be 0). You can easily verify this though.