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

What exactly does sd_ble_gatts_characteristic_add do?

My guess is that:

Characteristics are (or at least, can be considered) subsets of services, which in turn, are (or at least, can be considered) subsets of profiles.

The BLE standard gave developers a lot of latitude which enables them to customize services and profiles, which means developers can add or "not add" characteristics, which are core components of services.

My questions:

  1. Is my above understanding correct?
  2. What happens if I want to add some "default" characteristics? I'm thinking either one of the following 3 possiblities will be the case:

A. you don't have to, certain characteristics must come with a service anyway, or the service will be invalid;

B.There are default, liberary functions for that and all you have to do is to call these "specialized" functions and that will be that

C. you still have to add them like you add your own, customized characteristics, it's just that all the parameteres needed when adding the default characteristics are fixed and designated in the library and cannot be modified.

Please help, thanks in advance.

Related