-
Notifications
You must be signed in to change notification settings - Fork 622
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
ENABLE_GATT_FIND_INFORMATION_FOR_CCC_DISCOVERY codepath uses incorrect gatt_client state variable #632
Comments
Thanks for reporting. I've fixed the compile error on develop. Could you post a log of the failed CCCD? In which setup does it fail with Android? |
Do you need a full log, or just the relevant packets? |
In this case, the packets since the connection complete would be fine (to get some context). |
Here are logs from both the android and pico captures. |
Thanks for the logs. Is "resound android status ccc.pcap" the one taken on the Android device for comparison? |
Hi @mringwal I've trimmed the pico log (where we discovered the issue) to remove debug statements, and advertisement packets. |
I've just made ENABLE_GATT_FIND_INFORMATION_FOR_CCC_DISCOVERY the default as I didn't want the increased complexity for a fallback. Could you check if the current version on develop works for you? |
Describe the bug
When defining
ENABLE_GATT_FIND_INFORMATION_FOR_CCC_DISCOVERY
, btstack does not compile due togatt_client_t
not having thegatt_client_state
struct member.To Reproduce
ENABLE_GATT_FIND_INFORMATION_FOR_CCC_DISCOVERY
inbtstack_config.h
Expected behavior
btstack compiles.
Environment: (please complete the following information):
Additional context
I did a quick fixup in shermp@4b82482 to test with a Resound hearing aid. I don't know if I missed anything, or if it was the correct approach.
Unfortunately, this option is required for the resound hearing aid. It has an issue where it fails to read the CCCD for the required characteristic (it also happens on Android), and so this alternative method is required to be able to subscribe to notifications.
Is there any possibility this could become a runtime option, or even be available as an automatic fallback?
The text was updated successfully, but these errors were encountered: