-
Notifications
You must be signed in to change notification settings - Fork 5
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
Connect to a device by specifying an address #3
Comments
Looking at some web documents it seems that scanning should be necessary on BLE, however it seems to work without scanning for me on Android11. Not sure how it would turn out on other phones :/ |
Hi, |
I have already implemented it (not sure about the Parcelable interface and the manufacturer id though), should I post a Pull request? I have also fixed some bugs, but I wonder if you have a newer version of the API available? My firmware was upgraded to 4.2.1b by the ActiveLook app, but the version in both this repo and the documentation repo seems to be 4.1.1. Also, I cannot make the 'Pages' work at all, was there a change between these versions? |
The pull request is #7 . I can't just make the 'pages' work, the commands just return error. I'll look into this in a few days, hopefully will come with something. |
Would it be possible to connect directly to a device by specifing an address? Currently the API allows this only by first running scan; however when the app already has an address given, just connecting to the device looks like a better workflow and one doesn't have to synchronize with other parts of the application trying to scan for BLE devices.
I'm not a BlueTooth android expert, but the API seems to allow for this:
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#getRemoteDevice(java.lang.String)
The text was updated successfully, but these errors were encountered: