Page 1 of 1

Distinguish GAP Security Events & Other common GAP Events between GATT Client & Server

Posted: Fri May 03, 2019 6:56 am
by nisarg_sls
Dear Sir/Madam,
We need to implement GATT Client + GAP Central & GATT Server + GAP Peripheral model with Security on the device.
As we have observed that GAP Security Events & Other GAP events are common between GATT Client + GAP Central & GATT Server + GAP Peripheral roles.
So how we can distinguish the GAP Security Events & other common GAP Events between GATT Client & Server roles?
So we can use those events according to their roles.

Kindly guide me on this issue.

If any further information will be needed, then please inform.

Thanks.

Re: Distinguish GAP Security Events & Other common GAP Events between GATT Client & Server

Posted: Wed May 08, 2019 2:22 am
by chegewara
As we have observed that GAP Security Events & Other GAP events are common between GATT Client + GAP Central & GATT Server + GAP Peripheral roles.
So how we can distinguish the GAP Security Events & other common GAP Events between GATT Client & Server roles?
It is good observation, GAP events are not related to GATT role. You can build a device that wont have any GATT role and use only GAP role (observer or broadcaster). So you need to use exactly the same GAP events no matter what device you are trying to build.

Re: Distinguish GAP Security Events & Other common GAP Events between GATT Client & Server

Posted: Wed May 15, 2019 8:29 am
by nisarg_sls
Thanks for the reply. But we are deviating from the topic.
Our requirement is to implement GAP Central (who initiates the connection) with GATT client and GAP peripheral (who accepts the connection) with GATT server roles in our device.
As in ESP IDF, there is no distinction of GAP events between GAP Central and GAP Peripheral devices, as provided for GATT client & server events.
So guide us to distinguish the GAP events between Central & Peripheral.