gatt_browser.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // gatt_browser.h generated from ../../example/gatt_browser.gatt for BTstack
  2. // it needs to be regenerated when the .gatt file is updated.
  3. // To generate gatt_browser.h:
  4. // ../../tool/compile_gatt.py ../../example/gatt_browser.gatt gatt_browser.h
  5. // att db format version 1
  6. // binary attribute representation:
  7. // - size in bytes (16), flags(16), handle (16), uuid (16/128), value(...)
  8. #include <stdint.h>
  9. const uint8_t profile_data[] =
  10. {
  11. // ATT DB Version
  12. 1,
  13. // 0x0001 PRIMARY_SERVICE-GAP_SERVICE
  14. 0x0a, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x28, 0x00, 0x18,
  15. // 0x0002 CHARACTERISTIC-GAP_DEVICE_NAME-READ
  16. 0x0d, 0x00, 0x02, 0x00, 0x02, 0x00, 0x03, 0x28, 0x02, 0x03, 0x00, 0x00, 0x2a,
  17. // 0x0003 VALUE-GAP_DEVICE_NAME-READ-'GATT Browser'
  18. // READ_ANYBODY
  19. 0x14, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x47, 0x41, 0x54, 0x54, 0x20, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72,
  20. // END
  21. 0x00, 0x00,
  22. }; // total size 25 bytes
  23. //
  24. // list service handle ranges
  25. //
  26. #define ATT_SERVICE_GAP_SERVICE_START_HANDLE 0x0001
  27. #define ATT_SERVICE_GAP_SERVICE_END_HANDLE 0x0003
  28. //
  29. // list mapping between characteristics and handles
  30. //
  31. #define ATT_CHARACTERISTIC_GAP_DEVICE_NAME_01_VALUE_HANDLE 0x0003