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

A few questions about GATT

As I came to understand, all the services & characteristics are registered in a "GATT table" of some sort, so my question:

  1. What are the functions used to create and subsequently maintain this table? I can't find the relevant struct, which is strange because if there is a attribute/property table of some sort, I usually need to configure "it", which usually is a struct.

  2. Are there "default" services? By that I mean services that comes with a GATT connection, something which you don't have to declare explicitly using any function. I ask this because I have a program that invoke sd_ble_gatts_service_add once, yet I can view 3 on my android device, 2 of which (the ones that weren't "intentionally" created by me) start with UUID 0000 1800.

  3. If I want to read or write to certain characteristics, I need to first enable them. It can be done on both central & peripheral devices, right?

Related