Closed Sintaxya closed 1 year ago
Hello and sorry for the slow response.
This is a limitation of the BLE protocol- advertising payloads are limited to 31 octets (Core Spec Vol 6, Part B, Figure 2.6). I'm not so familiar with this spec so its a little tricky figuring out exactly where these bytes are going but my guess is:
Thank you for the answer. I switched from 128 bit UUID to 16 bit (gaining a few octets of length to be used in the process), and I could make the Manufacturer Data longer, as I wanted.
I have a BLE device which I wrote a Service for using bluez_peripheral, everything works smoothly until I try to change my manufacturer data or add service data.
Current Manufacturer data: MANUFACTURER_DATA = {0xFFFF: b'CP'}
However, when I change the b'CP' to anything longer, the Advertisement fails: Failed to parse advertisement. Example: MANUFACTURER_DATA = {0xFFFF: b'CPA'}
I don't exactly know the root of this issue, as, for example, i can safely change the local name of the device which is also part of the advertisement without any issues.
My advertisement:
Error: