le_data_channel_server.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // le_data_channel_server.h generated from ../../example/le_data_channel_server.gatt for BTstack
  2. // it needs to be regenerated when the .gatt file is updated.
  3. // To generate le_data_channel_server.h:
  4. // ../../tool/compile_gatt.py ../../example/le_data_channel_server.gatt le_data_channel_server.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-'LE Data Channel'
  18. // READ_ANYBODY
  19. 0x17, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x4c, 0x45, 0x20, 0x44, 0x61, 0x74, 0x61, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
  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