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

Implements BLE manufacturer data-feature in LEGO BOOST extension #2231

Merged
merged 3 commits into from
Sep 19, 2019
Merged

Implements BLE manufacturer data-feature in LEGO BOOST extension #2231

merged 3 commits into from
Sep 19, 2019

Conversation

knandersen
Copy link
Contributor

Resolves

#2230

Proposed Changes

Adds a filter to the scan()-function so that only properly initialised LEGO BOOST Move Hubs are discovered and connected to.

Reason for Changes

In Move Hub firmware 2.0.00.0017 the Move Hub briefly appears with a non-connectable MAC-address. Additionally, while non-connectable, no advertisement data is found. By implementing this filter, the non-connectable device will not pass through it.

@thisandagain
Copy link
Contributor

@knandersen
Copy link
Contributor Author

Reason for blocked label: We discovered during a test that while the Mac-version of Scratch Link doesn't seem to mind being passed a filter it doesn't know, the Windows-version will not discover anything.

@knandersen
Copy link
Contributor Author

With the release of Scratch Link 1.2, this PR technically isn't blocked anymore.

PSA: If this PR gets merged and a user is using Scratch Link 1.1 on Windows and use the LEGO BOOST extension, they will get an error when trying to connect.

@thisandagain
Copy link
Contributor

@cwillisf @ericrosenbaum Would you mind giving this a re-review?

Copy link
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

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

👍 looks good!
I've tested connecting to my BOOST hub with these values and it seems to work reliably for me. Most of my tests were with Windows but I've done a few on Mac as well.

@knandersen
Copy link
Contributor Author

Thanks @cwillisf ! After discussing with @ericrosenbaum, we'll hold off on merging until we've done some more testing.

Copy link
Contributor

@ericrosenbaum ericrosenbaum left a comment

Choose a reason for hiding this comment

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

LGMT! we tested on mac and win, with old and new boost firmware versions, with old and new scratch link versions, and each case behaved as expected.

@knandersen knandersen merged commit 23d94b3 into scratchfoundation:develop Sep 19, 2019
@knandersen knandersen deleted the bugfix/2230 branch September 19, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants