| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- // gatt_browser.h generated from ../../example/gatt_browser.gatt for BTstack
- // it needs to be regenerated when the .gatt file is updated.
- // To generate gatt_browser.h:
- // ../../tool/compile_gatt.py ../../example/gatt_browser.gatt gatt_browser.h
- // att db format version 1
- // binary attribute representation:
- // - size in bytes (16), flags(16), handle (16), uuid (16/128), value(...)
- #include <stdint.h>
- const uint8_t profile_data[] =
- {
- // ATT DB Version
- 1,
- // 0x0001 PRIMARY_SERVICE-GAP_SERVICE
- 0x0a, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x28, 0x00, 0x18,
- // 0x0002 CHARACTERISTIC-GAP_DEVICE_NAME-READ
- 0x0d, 0x00, 0x02, 0x00, 0x02, 0x00, 0x03, 0x28, 0x02, 0x03, 0x00, 0x00, 0x2a,
- // 0x0003 VALUE-GAP_DEVICE_NAME-READ-'GATT Browser'
- // READ_ANYBODY
- 0x14, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x47, 0x41, 0x54, 0x54, 0x20, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72,
- // END
- 0x00, 0x00,
- }; // total size 25 bytes
- //
- // list service handle ranges
- //
- #define ATT_SERVICE_GAP_SERVICE_START_HANDLE 0x0001
- #define ATT_SERVICE_GAP_SERVICE_END_HANDLE 0x0003
- //
- // list mapping between characteristics and handles
- //
- #define ATT_CHARACTERISTIC_GAP_DEVICE_NAME_01_VALUE_HANDLE 0x0003
|