Skip to content
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

Maximum length of Request is limited to 512 bytes -> add chunk suppor? #56

Open
sschulz-t opened this issue Mar 30, 2024 · 0 comments
Open

Comments

@sschulz-t
Copy link

sschulz-t commented Mar 30, 2024

The current draft does not specify the maximum length for the request 00000005-5026-444A-9E0E-D6F2450F3A77

As per BT specification "3.2.9 Long attribute values"

...
The maximum length of an attribute value shall be 512 octets.
...

Longer values as 512 bytes seem to work under linux/macosx but not on android
(https://cs.android.com/android/platform/superproject/main/+/main:packages/modules/Bluetooth/system/stack/gatt/gatt_cl.cc;l=692;drc=7369db2599643b98b60b3b6237178919f9b7726d).
In older android versions this limit was 600 bytes and was recently changed to 512 in order to comply with the bt spec.

Having only 512 bytes looks quite limiting to me, we should come up with some kind of chunking mechanism here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant