xref: /btstack/doc/manual/docs-intro/gatt_services_intro.md (revision 503a627edab6ba8492c3d0cdd9ac598fe2b0f08a)
1*503a627eSMilanka Ringwald#
2*503a627eSMilanka Ringwald
3*503a627eSMilanka RingwaldBTstack allows to implement and use GATT Services in a modular way.
4*503a627eSMilanka Ringwald
5*503a627eSMilanka RingwaldTo use an already implemented GATT Service Server, you only have to add it to your application's GATT file with:
6*503a627eSMilanka Ringwald  - `#import <service_name.gatt>` for .gatt files located in *src/ble/gatt-service*
7*503a627eSMilanka Ringwald  - `#import "service_name.gatt"` for .gatt files located in the same folder as your application's .gatt file.
8*503a627eSMilanka Ringwald
9*503a627eSMilanka RingwaldEach service will have an API at *src/ble/gatt-service/service_name_server.h*. To activate it, you need to call *service_name_init(..)*.
10*503a627eSMilanka Ringwald
11*503a627eSMilanka RingwaldPlease see the .h file for details.
12