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

Added code to get bonded devices from adapter #46

Merged
merged 5 commits into from
Jul 22, 2016

Conversation

fracturedpsyche
Copy link
Contributor

For a development project I am working on I have the need to pull a list of bonded devices. Added code to the RxBleClient in order to facilitate this. I also fixed an existing style issue.

@fracturedpsyche
Copy link
Contributor Author

The build appears to be failing because of an existing failing test.

@@ -66,6 +66,17 @@ public RxBleDevice getBleDevice(@NonNull String macAddress) {
}

@Override
public Set<RxBleDevice> getBondedDevices() {
Set<RxBleDevice> rxBleDevices = null;
Copy link
Owner

Choose a reason for hiding this comment

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

I believe this line should look: Set<RxBleDevice> rxBleDevices = new HashSet(size);
Otherwise the function will throw NPE in line 73 or I have missed where the rxBleDevices is set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are probably correct. I will make that change.

Copy link
Owner

@dariuszseweryn dariuszseweryn Jul 14, 2016

Choose a reason for hiding this comment

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

Please add a test scenario in RxBleClientTest.groovy as well.

@dariuszseweryn
Copy link
Owner

The failing test should be fixed at the current top of the master branch.

@dariuszseweryn
Copy link
Owner

Could you also add an appropriate test in RxBleClientTest.groovy?

@uKL uKL self-assigned this Jul 22, 2016
@uKL
Copy link
Collaborator

uKL commented Jul 22, 2016

Good to go, I'm merging.

@uKL uKL merged commit bf82ef8 into dariuszseweryn:master Jul 22, 2016
@uKL
Copy link
Collaborator

uKL commented Mar 20, 2018

Dear Contributor,

similar to many open source projects we kindly request to sign our CLA if you'd like to contribute to our project. This license is for your protection as a Contributor as well as the protection of Polidea; it does not change your rights to use your own Contributions for any other purpose.

You can find a link here: https://cla-assistant.io/Polidea/RxAndroidBle

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.

3 participants