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

Connect to a device by specifying an address #3

Open
ondrap opened this issue Feb 11, 2022 · 5 comments
Open

Connect to a device by specifying an address #3

ondrap opened this issue Feb 11, 2022 · 5 comments

Comments

@ondrap
Copy link
Contributor

ondrap commented Feb 11, 2022

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)

@ondrap
Copy link
Contributor Author

ondrap commented Feb 11, 2022

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 :/

@SylvainRomillon
Copy link
Contributor

Hi,
It is not implemented, but it could be an interesting new feature.
We will think about it.
Thank you for your feedback

@ondrap
Copy link
Contributor Author

ondrap commented Feb 16, 2022

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?

@SylvainRomillon
Copy link
Contributor

  • We are currently working on a new SDK version, that you can find here : rc/4.2.1. It's still under development.
  • The 4.2.1 API documentation is here
  • Of course, you can do pull request. Thank you
  • There was no changing on "pages" function between 4.1.1 & 4.2.0.

@ondrap
Copy link
Contributor Author

ondrap commented Feb 20, 2022

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.

kiiks added a commit that referenced this issue Nov 15, 2023
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

No branches or pull requests

2 participants