-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cordio BLE stack: No callback comes to the application for Descriptor Read and Write #9771
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-898 |
Hi, This issue is different from #9732. #9732 is for Readcallback for Characteristics. |
I apologize that I misunderstood this description, we will look into it. |
Hi @pan- , My thought for what we need to change is
|
@desmond-blue IIRC correctly it is asked that users set their properties for these descriptor types; the only exception being CCCD as they are implicitly instantiated if a characteristic is able to notify or indicate. More generally, I believe the whole GattServer API needs a refresh as it is not built on sane grounds. |
@desmond-blue Happy to approve your fix as it solves one of the issue. It must be stretched out that it does not solve the case when the value of the descriptor being read needs to be generated at access time or authorisation/rejection of a descriptor write. For that we would need an API refresh. |
Fixed on master branch of mbed. Verified the same. |
When a GATT client reads or writes to the Characteristic descriptor application does not receive any read and write callback.
The below function GattServer::insert_descriptor in CordioGattserver.cpp does not set callback bits. Can you please check. Probably below bits need to be set for descriptors as well.
attribute_it->settings = ATTS_SET_READ_CBACK;
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
Issue request type
The text was updated successfully, but these errors were encountered: