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

Added support for 32bit UUID's added in 4.1 of the Bluetooth spec #1315

Merged
merged 6 commits into from
Jun 13, 2023

Conversation

al-little
Copy link
Contributor

Pull Request Guidelines for Bleak

Before you submit a pull request, check that it meets these guidelines:

  1. If the pull request adds functionality, the docs should be updated.
  2. Modify the CHANGELOG.rst, describing your changes as is specified by the
    guidelines in that document.
  3. The pull request should work for Python 3.7+ on the following platforms:
    • Windows 10, version 16299 (Fall Creators Update) and greater
    • Linux distributions with BlueZ >= 5.43
    • OS X / macOS >= 10.11
  4. Squash all your commits on your PR branch, if the commits are not solving
    different problems and you are committing them in the same PR. In that case,
    consider making several PRs instead.
  5. Feel free to add your name as a contributor to the AUTHORS.rst file!

Copy link
Collaborator

@dlech dlech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I just have a few suggestion to improve the doc string.

Also, please add a changelog entry.

bleak/uuids.py Outdated Show resolved Hide resolved
bleak/uuids.py Outdated
@@ -1157,11 +1157,16 @@ def normalize_uuid_str(uuid: str) -> str:
- Converted to lower case.
- 16-bit UUIDs are expanded to 128-bit.

BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part B - Section 2.5.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need this in the documentation. I don't expect anyone to actually look it up.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think the Bluetooth spec reference would be better as a code comment rather than a documentation comment.

bleak/uuids.py Show resolved Hide resolved
@dlech dlech linked an issue May 17, 2023 that may be closed by this pull request
al-little and others added 3 commits May 17, 2023 15:15
Co-authored-by: David Lechner <david@lechnology.com>
Co-authored-by: David Lechner <david@lechnology.com>
@al-little
Copy link
Contributor Author

Morning. Any chance of progressing the pull request? Please let me know if there is anything else I need to do.

Copy link
Collaborator

@dlech dlech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful if you could also add a changelog entry.

bleak/uuids.py Outdated
@@ -1157,11 +1157,16 @@ def normalize_uuid_str(uuid: str) -> str:
- Converted to lower case.
- 16-bit UUIDs are expanded to 128-bit.

BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part B - Section 2.5.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think the Bluetooth spec reference would be better as a code comment rather than a documentation comment.

@al-little
Copy link
Contributor Author

I have added a change log and fixed the doc format.

@dlech dlech merged commit 294e731 into hbldh:develop Jun 13, 2023
@dlech
Copy link
Collaborator

dlech commented Jun 13, 2023

Thanks!

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.

32 bit UUID causing exceptions during discovery
2 participants