Skip to content

gap: Introduce AdvertisementPayload.ServiceUUIDs() #364

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mook
Copy link

@mook mook commented May 22, 2025

This adds a new method that returns all of the Service Class UUIDs found in the advertisement payload. This may require allocating a new slice of UUIDs, hence using HasServiceUUID where possible is still preferred.

Fixes #363

I have no idea what I'm doing, so please review the rawAdvertisementPayload implementation harder; I'm just adapting the HasServiceUUID code. I assume since go.mod claims go1.20 using the conversion in NewUUID is okay.

Please let me know if you'd like me to make changes; if you feel like making the directly that's fine too.

This adds a new method that returns all of the Service Class UUIDs found in
the advertisement payload.  This may require allocating a new slice of
UUIDs, hence using HasServiceUUID where possible is still preferred.

Fixes tinygo-org#363
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.

1 participant