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.

CC2640R2F: Reason parameter for connection termination.

Part Number: CC2640R2F

Quick question.... 

If I call GAP_TerminateLinkReq() from SimpleCentral will it terminate an existing connection?

What is the "reason" parameter? I can't find much documentation on the meaning of the parameter.

Thanks,

Jason

  • Follow on related question....

    typedef struct
    {
    osal_event_hdr_t hdr; //!< @ref GAP_MSG_EVENT and status
    uint8_t opcode; //!< @ref GAP_LINK_TERMINATED_EVENT
    uint16_t connectionHandle; //!< connection Handle
    uint8_t reason; //!< termination reason from LL, defined in ll.h
    } gapTerminateLinkEvent_t;

    I can't find much on the reason element in this structure either. I couldn't find ll.h on my drive.

    Anything you can tell me about it?

    Thanks,
    Jason

  • Yes, it will terminate the connection.