-
Notifications
You must be signed in to change notification settings - Fork 142
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
add ServiceData advertising element #243
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8a40ada
gap: fix comment
radhus 07fa144
gap: expose ServiceData() in AdvertisementFields
radhus 2b64fa4
macos: include ServiceData in AdvertisementFields
radhus a8f1440
gap/linux: include ServiceData in AdvertisementFields
radhus 89f28d2
gap: add unimplemented ServiceData() to raw advertisement
radhus 7008639
Merge remote-tracking branch 'radhus/servicedata-in-advfields' into s…
dnlwgnd 3f12574
added ServiceData advertising element also to the sending pieces
dnlwgnd 1081f5f
more explicitly use the ad element type ids
dnlwgnd 132d7de
added a test case for ServiceData
dnlwgnd a4c7183
linux: added ServiceData advertising element
dnlwgnd 1cfab88
sd: fix: handle no servicedata present
dnlwgnd 7879cc3
linux: bluez uses string uuids for service data
dnlwgnd 01f10d9
linux: fix: correct datatype for advertise with ServiceData
dnlwgnd 1cc585e
Merge remote-tracking branch 'origin/dev' into servicedata
dnlwgnd e368ed6
uuid: add 32-Bit functions
dnlwgnd b052dcb
ServiceData now also uses a slice instead of a map as in #244
dnlwgnd 8182ad0
Revert unnessesary changes
dnlwgnd 24bd8fc
formatting
dnlwgnd 14e58f6
remove extra check
dnlwgnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is always the service UUID (which can be 16/32/128-bit) - not a company ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought so as well, but indeed in case of bthome which is my usecase, they use a company id (
0xFCD2
) with service data. Hence my comment on the function .There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really is a service UUID, not a company ID. You can check for yourself here: https://bitbucket.org/bluetooth-SIG/public/src/413977fdb5a21c25947f3abc4d7cf26947cd0e63/assigned_numbers/uuids/member_uuids.yaml#lines-1149
Company IDs are listed here, and don't include 0xFCD2: https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fine. i didnt think that members weren't companies. please go ahead and change that comment to suit you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change in a subsequent PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a PR to fix the comment: #275