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

Gatt exchange mtu event not work #58

Open
Gearspre opened this issue Sep 8, 2024 · 3 comments
Open

Gatt exchange mtu event not work #58

Gearspre opened this issue Sep 8, 2024 · 3 comments

Comments

@Gearspre
Copy link

Gearspre commented Sep 8, 2024

I am trying to use this lib to create gatt server, it works. But no matter how I send the exchange MTU event, its MTU always remains at 517.
And I find in application.c line:1035 has one todo : deal with the offset & mtu parameter
So is this a known issue, and is there any simple solution?

@weliem
Copy link
Owner

weliem commented Sep 9, 2024

I have been looking into this but I don't think Bluez has an API for this.

@Gearspre
Copy link
Author

Gearspre commented Sep 9, 2024

Yes. I found a link discussing this thing : Determine ATT MTU size over DBUS

Now I have another problem. How can I get the negotiated MTU size from GattCharacteristic?
A simple solution is get from ReadValue or WriteValue method options. But it's not a good solution. Do you have any idea?

@weliem
Copy link
Owner

weliem commented Sep 10, 2024

Using the MTU from the ReadValue and WriteValue options parameter is totally fine to use. However, that doesn't enforce a MTU. It simply says what the current MTU is....

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

2 participants