-
Notifications
You must be signed in to change notification settings - Fork 310
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
Unable to unpair with device #699
Comments
Pairing isn't implemented in Windows yet. See #640. |
I did implement pairing in my first winrt reimplementation of the previous backend. There are some elements of it there, right? A just works-pairing? Try removing the offending check in your local installation of Bleak and see if something breaks. However, I do not think that the Bleak |
Yes, the elements of your old implementation do work. In case there are no immediate plans to re-implement this, maybe I could open a pull request with the temporary changes to make this work for more devices, by removing the check and adding a try/except instead. |
An update: I added this code segment at the beginning of
I get a |
Nice find. I guess the Instead of creating a new We should also check for other uses of Happy to take a pull request for this. |
I didn't quite get what you meant by
I'm not sure how exactly to do that. Anything I can refer to? |
There is the |
The |
Yes, that was exactly what I was looking at. I get this attribute error- The device_information object is being used only in the
I tried this and it worked. Doesn't seem to break anything for now. |
Yes, this is what I was suggesting. |
I'll test some more with my devices and open a PR with these changes. |
Hi guys, |
Description
I am trying to pair and unpair with an Arduino Nano 33 BLE. I want to pair since there is an HID service I want to use which won't work using the standard connect method since it throws an Access Denied.
What I Did
Pairing works fine and I can use it as an HID. I am planning to use unpair for disconnecting. Calling unpair does nothing.
The issue seems to be that unpair uses the following boolean variable -
self._requester.device_information.pairing.is_paired
Even though the
pair
function returns true, the above boolean variable remains false. Possibly something on the firmware end and I can't figure out how to fix that.Is it possible to have another boolean instance variable to store the pairing status at the software end and raise an exception if unpair fails?
Is it also possible that the above boolean variable isn't being refreshed after pairing in Bleak?
This is a bit urgent so I'd appreciate some quick help!
TIA
The text was updated successfully, but these errors were encountered: