-
Notifications
You must be signed in to change notification settings - Fork 80
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
MTU change issue (GATT_INVALID_PDU) #92
Comments
What you're doing looks correct. Quick Google search indicates that MTU can only be requested once per connection. Kable does not make any MTU requests internally, so that shouldn't be a problem here. Do you get the same failure when requesting a different MTU (e.g. I'll try to find some time soon to test/reproduce on my side. |
I have found that I was connecting multiple times so that is the cause of the exception. If I write 23 bytes of data a characteristic using Kable I get an error result. If I write the same 23 bytes of data using nRFConnect I get a success result. With Kable I get a success result only if I write a maximum of 15 bytes of data |
Finally I have solved the problem by passing |
Thanks for following up with what works for you! You don't happen to know if nRF Connect is writing with response? (trying to see if this issue needs further investigation, if nRF Connect is doing write without response then I might try to determine why there is a difference of the max MTU you can obtain) |
I am getting the following exception when trying to change the MTU
This is how I am trying to do that
Am I doing somthing wrong?
The text was updated successfully, but these errors were encountered: