This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to remove generic access and generic attribute profiles

Hi,

I am working on some application in which i have combined multiple profiles in one code. In this i don't want generic access and generic attribute profiles to be displayed.

So can any one suggest how can I remove both of them? by removing both of them does all profile will function properly?

I am using keil version 5 and nrf52 SDK 11.0.0 having soft device s132.

Parents
  • Hey,

    The GAP service is mandatory and cannot be removed.

    See Bluetooth 4.2 spec Vol 3. Part C, Chapter 12: "The GATT server shall contain the GAP service for devices supporting the Central and Peripheral GAP roles and BR/EDR GAP role for BR/EDR/LE type devices."

    For the GATT service, there is no way to currently remove it, but I'm not sure if it is mandatory too.

    However, the way one should interface with Profiles in Bluetooth is to focus on the UUID(s) that are interesting. Perform the discovery procedure on services you are interested in, then go ahead and configure them (or read their information). GAP/GATT being there should not affect you unless you are trying to discover and print absolutely everything.

  • Hi Ulrich,

    Thanks for your response. Yes I have interfaced the profiles by focusing on their UUDs and they are working fine...I just wanted to remove the GATT/GAP profiles but, now its clear.

Reply Children
No Data
Related