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

VIVI-5527 parse service data #1

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

andrewjpritchard
Copy link

Andrew Pritchard added 2 commits February 5, 2021 11:23
VIVI-5527
- BLEServer is an executable from the `web-bluetooth-polyfill` repository
- It has been modified to return the raw AD structures
- This patch retrieves the relevant service data from BLEServer, formats it and returns it
- Additionally, it falls back to `@abandonware/noble` which is the up-to-date version of `noble`
@andrewjpritchard andrewjpritchard requested a review from a team February 7, 2021 23:12
bindings.js Outdated
Comment on lines 201 to 202
"uuid": this._toHex(adStructure.data[1]) + this._toHex(adStructure.data[0]),
"data": Buffer.from(adStructure.data.slice(2))
Copy link
Member

Choose a reason for hiding this comment

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

quotes are redundant here, right?

bindings.js Outdated
@@ -190,6 +192,17 @@ class WinrtBindings extends events.EventEmitter {
}
}

// This will only retrive service data with 16 bit UUIDs. If you need
Copy link
Member

Choose a reason for hiding this comment

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

retrive

Copy link
Member

@tristanpenman tristanpenman left a comment

Choose a reason for hiding this comment

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

Still not sure how you figured this out...

@andrewjpritchard andrewjpritchard merged commit a1c382d into master Feb 22, 2021
@andrewjpritchard andrewjpritchard deleted the vivi-5527-parse-service-data branch February 22, 2021 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants