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 server, client conneting indication

Part Number: CC2340R5

Tool/software:

Hello,

Using CC2340R5 as peripheral, GATT server. stack F3 7.40.00.64.

We would like to have an event that will indicate that a GATT cleint has connected/disconnected to GATT server.

Didn't find any API a GATT client connection indication.

Please advise.

Thanks,
Oren Fivlovich

  • Hello Oren,

    Thanks for reaching out.

    Do you mean an event to identify a device running gatt server has connected with a devices running gatt client? I would suggest to take a look at the event: BLEAPPUTIL_LINK_ESTABLISHED_EVENT. You can find the reference of how it is used inside app_connection.c in basic_ble out of the box SDK example.

    BR,

    David.

  • Hi David,

    I believe BLEAPPUTIL_LINK_ESTABLISHED_EVENT is a GAP event, set when we have BLE link connection. its not guarantee that we also have GATT client-server connection.
     
    We are looking for GATT event that will give us indication that client has connected to our GATT server.

    Regards,
    Oren

  • Hello Oren,

    I see, when the peripheral and central are connected and you get a LINK_ESTABLISHED_EVENT at a GAP level, it should already be possible to initiate a sever/client interaction (by discovering the GATT table or writing/reading directly if you known the handles of the table). However, you could also implement an additional mechanism that confirms that this event you are looking for has already occurred by writing/reading a characteristic you know means an interaction between both server and client is already possible.

    Let me know if this helps.

    BR,

    David.