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

Expose ServiceData() in AdvertisementFields #123

Closed
wants to merge 5 commits into from

Conversation

radhus
Copy link
Contributor

@radhus radhus commented Oct 9, 2022

This PR adds a ServiceData() function to AdvertisementFields which returns a map of service data, similar to manufacturer data.

I don't know the Bluetooth spec enough to understand the difference between these two, but I have different BLE devices and some advertise the data I'm interested in as service data, while others use manufacturer data. I'd like to use this library to handle both types of devices.

I have tested this on Linux and macOS. Both works, but as IIRC you can't get hold of the device MAC on macOS, I couldn't verify the data completely. I don't have access to Windows or custom devices to test further.

Hope this feature makes sense!

@deadprogram deadprogram changed the base branch from release to dev February 12, 2023 21:50
@aykevl
Copy link
Member

aykevl commented Jan 17, 2024

This looks like a reasonable PR, sorry I missed it.

Can you rebase it on the current dev branch? There were a lot of changes in the Linux/BlueZ version so this PR will need some updates.

dnlwgnd added a commit to dnlwgnd/tinygo-bluetooth that referenced this pull request Feb 17, 2024
@radhus
Copy link
Contributor Author

radhus commented Mar 18, 2024

Rebased and merged in #243 . Sorry for forgetting about this 🙈

@radhus radhus closed this Mar 18, 2024
@radhus radhus deleted the servicedata-in-advfields branch March 18, 2024 21:20
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.

2 participants