1*ff04bac7SMatthias Ringwald 2*ff04bac7SMatthias Ringwald // att_db_util_test.h generated from att_db_util_test.gatt for BTstack 3*ff04bac7SMatthias Ringwald // att db format version 1 4*ff04bac7SMatthias Ringwald 5*ff04bac7SMatthias Ringwald // binary attribute representation: 6*ff04bac7SMatthias Ringwald // - size in bytes (16), flags(16), handle (16), uuid (16/128), value(...) 7*ff04bac7SMatthias Ringwald 8*ff04bac7SMatthias Ringwald #include <stdint.h> 9*ff04bac7SMatthias Ringwald 10*ff04bac7SMatthias Ringwald const uint8_t profile_data[] = 11*ff04bac7SMatthias Ringwald { 12*ff04bac7SMatthias Ringwald // ATT DB Version 13*ff04bac7SMatthias Ringwald 1, 14*ff04bac7SMatthias Ringwald 15*ff04bac7SMatthias Ringwald // 0x0001 PRIMARY_SERVICE-GAP_SERVICE 16*ff04bac7SMatthias Ringwald 0x0a, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x28, 0x00, 0x18, 17*ff04bac7SMatthias Ringwald // 0x0002 CHARACTERISTIC-GAP_DEVICE_NAME-READ 18*ff04bac7SMatthias Ringwald 0x0d, 0x00, 0x02, 0x00, 0x02, 0x00, 0x03, 0x28, 0x02, 0x03, 0x00, 0x00, 0x2a, 19*ff04bac7SMatthias Ringwald // 0x0003 VALUE-GAP_DEVICE_NAME-READ-'SPP+LE Counter' 20*ff04bac7SMatthias Ringwald // READ_ANYBODY 21*ff04bac7SMatthias Ringwald 0x16, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x53, 0x50, 0x50, 0x2b, 0x4c, 0x45, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 22*ff04bac7SMatthias Ringwald 23*ff04bac7SMatthias Ringwald // 0x0004 PRIMARY_SERVICE-GATT_SERVICE 24*ff04bac7SMatthias Ringwald 0x0a, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x28, 0x01, 0x18, 25*ff04bac7SMatthias Ringwald // 0x0005 CHARACTERISTIC-GATT_SERVICE_CHANGED-READ 26*ff04bac7SMatthias Ringwald 0x0d, 0x00, 0x02, 0x00, 0x05, 0x00, 0x03, 0x28, 0x02, 0x06, 0x00, 0x05, 0x2a, 27*ff04bac7SMatthias Ringwald // 0x0006 VALUE-GATT_SERVICE_CHANGED-READ-'' 28*ff04bac7SMatthias Ringwald // READ_ANYBODY 29*ff04bac7SMatthias Ringwald 0x08, 0x00, 0x02, 0x00, 0x06, 0x00, 0x05, 0x2a, 30*ff04bac7SMatthias Ringwald // Counter Service 31*ff04bac7SMatthias Ringwald 32*ff04bac7SMatthias Ringwald // 0x0007 PRIMARY_SERVICE-0000FF10-0000-1000-8000-00805F9B34FB 33*ff04bac7SMatthias Ringwald 0x18, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x28, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x10, 0xff, 0x00, 0x00, 34*ff04bac7SMatthias Ringwald // Counter Characteristic, with read and notify 35*ff04bac7SMatthias Ringwald // 0x0008 CHARACTERISTIC-0000FF11-0000-1000-8000-00805F9B34FB-READ | NOTIFY | DYNAMIC 36*ff04bac7SMatthias Ringwald 0x1b, 0x00, 0x02, 0x00, 0x08, 0x00, 0x03, 0x28, 0x12, 0x09, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x11, 0xff, 0x00, 0x00, 37*ff04bac7SMatthias Ringwald // 0x0009 VALUE-0000FF11-0000-1000-8000-00805F9B34FB-READ | NOTIFY | DYNAMIC-'' 38*ff04bac7SMatthias Ringwald // READ_ANYBODY 39*ff04bac7SMatthias Ringwald 0x16, 0x00, 0x02, 0x03, 0x09, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x11, 0xff, 0x00, 0x00, 40*ff04bac7SMatthias Ringwald // 0x000a CLIENT_CHARACTERISTIC_CONFIGURATION 41*ff04bac7SMatthias Ringwald // READ_ANYBODY, WRITE_ANYBODY 42*ff04bac7SMatthias Ringwald 0x0a, 0x00, 0x0a, 0x01, 0x0a, 0x00, 0x02, 0x29, 0x00, 0x00, 43*ff04bac7SMatthias Ringwald 44*ff04bac7SMatthias Ringwald // END 45*ff04bac7SMatthias Ringwald 0x00, 0x00, 46*ff04bac7SMatthias Ringwald }; // total size 99 bytes 47*ff04bac7SMatthias Ringwald 48*ff04bac7SMatthias Ringwald 49*ff04bac7SMatthias Ringwald // 50*ff04bac7SMatthias Ringwald // list service handle ranges 51*ff04bac7SMatthias Ringwald // 52*ff04bac7SMatthias Ringwald #define ATT_SERVICE_GAP_SERVICE_START_HANDLE 0x0001 53*ff04bac7SMatthias Ringwald #define ATT_SERVICE_GAP_SERVICE_END_HANDLE 0x0003 54*ff04bac7SMatthias Ringwald #define ATT_SERVICE_GATT_SERVICE_START_HANDLE 0x0004 55*ff04bac7SMatthias Ringwald #define ATT_SERVICE_GATT_SERVICE_END_HANDLE 0x0006 56*ff04bac7SMatthias Ringwald #define ATT_SERVICE_0000FF10_0000_1000_8000_00805F9B34FB_START_HANDLE 0x0007 57*ff04bac7SMatthias Ringwald #define ATT_SERVICE_0000FF10_0000_1000_8000_00805F9B34FB_END_HANDLE 0x000a 58*ff04bac7SMatthias Ringwald 59*ff04bac7SMatthias Ringwald // 60*ff04bac7SMatthias Ringwald // list mapping between characteristics and handles 61*ff04bac7SMatthias Ringwald // 62*ff04bac7SMatthias Ringwald #define ATT_CHARACTERISTIC_GAP_DEVICE_NAME_01_VALUE_HANDLE 0x0003 63*ff04bac7SMatthias Ringwald #define ATT_CHARACTERISTIC_GATT_SERVICE_CHANGED_01_VALUE_HANDLE 0x0006 64*ff04bac7SMatthias Ringwald #define ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE 0x0009 65*ff04bac7SMatthias Ringwald #define ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_CLIENT_CONFIGURATION_HANDLE 0x000a 66