I glanced over the attached foot_pedal_profile.h and noticed that the length fields of each record are clearly too small. Therefore, it seems that the data structure is not properly constructed.
For example, the first record starts with 0x11, so we would expect a 17-byte record (including the length field), but it actually appears to be intended as a 21-byte record.
The other records also have mismatches between the declared length and the actual record length.
How did you create this ATT database data structure?
For example, the first record starts with 0x11, so we would expect a 17-byte record (including the length field), but it actually appears to be intended as a 21-byte record.
// Primary Service Declaration: Foot Pedal Service (UUID: c1f611b1-35f3-4fcf-8042-f6cd98c90c57)
0x11, 0x00, 0x01, 0x00, 0x00, 0x28, 0x57, 0x0c, 0xc9, 0x98, 0xcd, 0xf6, 0x42, 0x80, 0xcf, 0x4f, 0xf3, 0x35, 0xb1, 0x11, 0xf6,
The other records also have mismatches between the declared length and the actual record length.
How did you create this ATT database data structure?
Statistics: Posted by 0yama — Tue Apr 08, 2025 12:56 pm