#include <ble_gatts.h>
Add a service declaration to the Attribute Table.
- Note
- Secondary Services are only relevant in the context of the entity that references them, it is therefore forbidden to add a secondary service declaration that is not referenced by another service later in the Attribute Table.
- Relevant Message Sequence Charts
-
- Parameters
-
| [in] | type | Toggles between primary and secondary services, see GATT Server Service Types. |
| [in] | p_uuid | Pointer to service UUID. |
| [out] | p_handle | Pointer to a 16-bit word where the assigned handle will be stored. |
- Return values
-