-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bluetooth: can't send advertising data bigger than 32 bytes #175
Comments
bjoernQ/bleps#2 mentions 32 bytes as a limit, but it seems to work with esp-idf so I am unsure where is the limit exactly, and if I can cut the packets somehow. |
I found this in esp-nimble that also seems to point at a limit, but I am having no trouble when doing that with
With the size of the name and the data quite bigger than 32 bytes. I am clearly missing something but I still don't know what. |
RIGHT so I think I found my answer: if the size is too big |
Anddd I also found what I need in the spec. I just added support for |
Currently bleps pads advertising data with 0 up to 32 bytes, and have no logic for bigger packet (triggers an out of bounds error).
If I try to remove the padding for bigger packets, remove the padding altogether, or use 64/128 padding, the HCI command can't be sent to libbtdm blob (Error 18).
Only padded 32 bytes exactly seems to work (36 with the 4 bytes HCI header).
I failed to find such a padding in esp-idf or the HCI spec, and theorical max size of a PDU seems to be quite bigger.
I am probably failing to understand something here but I don't know what and I am a bit stuck so any help appreciated :)
The text was updated successfully, but these errors were encountered: