Skip to content

aioble: Improve handling of descriptors. #517

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

Closed
wants to merge 4 commits into from

Conversation

jimmo
Copy link
Member

@jimmo jimmo commented Aug 9, 2022

  1. Use the characteristic end handle (available in next MicroPython release) when querying descriptors. Fixes Aioble - Discover duplicated or unrelated descriptors #485
  2. Fix server-side custom descriptor registration. Fixes Issue in AIOBLE #442
  3. Fix descriptor client events.
  4. Add multi-test.

@jimmo jimmo force-pushed the aioble-descriptors branch from a1f7680 to 6ec2ec6 Compare August 9, 2022 06:52
@jimmo
Copy link
Member Author

jimmo commented Aug 9, 2022

See corresponding change in micropython/micropython#9031

jimmo added 4 commits August 9, 2022 17:07
The `bluetooth` module replaced the def_handle field with end_handle
in the characteristic result IRQ. Use this when querying for
descriptors.

In the case where this is not available (older versions of micropython)
continue the existing behavior of searching just past the value handle,
although decrease this to +2 to avoid finding other characteristic's
descriptors.

Signed-off-by: Jim Mussared <[email protected]>
This allows a server to register descriptors, which was previously not
fully implemented.

Signed-off-by: Jim Mussared <[email protected]>
Descriptors were missing common initialisation for events shared with
characteristics.

Signed-off-by: Jim Mussared <[email protected]>
@jimmo jimmo force-pushed the aioble-descriptors branch from 6ec2ec6 to 9e189da Compare August 9, 2022 07:07
@jimmo
Copy link
Member Author

jimmo commented Sep 9, 2022

Merged in 64e752c through d080924.

@jimmo jimmo closed this Sep 9, 2022
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

Successfully merging this pull request may close these issues.

Aioble - Discover duplicated or unrelated descriptors Issue in AIOBLE
1 participant