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

Add possibility to get BluetoothDevice from RxBleDevice #23

Closed
pszklarska opened this issue May 30, 2016 · 2 comments
Closed

Add possibility to get BluetoothDevice from RxBleDevice #23

pszklarska opened this issue May 30, 2016 · 2 comments
Assignees

Comments

@pszklarska
Copy link

It'll be helpful to have getter in RxBleDeviceImpl class for bluetoothDevice (e.g. for using combined BLE and classic Bluetooth)

@tatewaki
Copy link

tatewaki commented Jun 3, 2016

This would be nice 👍

my Workaround is reflection:

try {
    Field field = device.getClass().getDeclaredField("bluetoothDevice");
    field.setAccessible(true);
    BluetoothDevice nativeDevice = (BluetoothDevice) field.get(device);
} catch (Exception e) {
     e.printStackTrace();
}

dariuszseweryn added a commit that referenced this issue Jun 6, 2016
Reviewers: michal.zielinski, pawel.urban

Reviewed By: pawel.urban

Differential Revision: https://phabricator.polidea.com/D1631
@dariuszseweryn
Copy link
Owner

Should be possible to use RxBleDevice.getBluetoothDevice() in the next snapshot of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants