-
Notifications
You must be signed in to change notification settings - Fork 121
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
Is bleak supported or not? #76
Comments
To answer myself, the documentation was wrong, here is the fix: something works now, still experimenting |
Update: In order to make it work on a mac, had to do another fix to the actual code: with this, it very consistently connects to the device every even and fails every odd time when experimenting. Seems like there is some state on one of the layers (bleak/BT core?) |
fresh demo: https://www.youtube.com/watch?v=F9OxJLWDVfc |
The video is WOW! |
btw, this whole thing started suddenly working, connection works every time, really fast too, connects almost instantly, I am still not sure what is happening |
I guess this works now |
Hi all, i also ran into the problems described in #82 . 162 INFO root Trying get_connection_bluepy Any ideas how to solve this ? |
Hello,
However I get this warning:
I also see that the LEGO Hub is discovered because I recognise the UUID, but it is discovered as unknown device:
If the information can be helpful, I can get a bluetooth connection to the hub using the following:
Can anyone give a hint on where to look for the issue? Marco |
Hi All, @finik, thanks your fix works. I had to downgrade Bleak to 0.7.1 and setup connection via MAC address (same as @bibo750four ) showed above. @matti76 please downgrade Bleak to 0.7.1 and do a hack with MAC above. |
@undera, what OS and what backend are you using? Guess it's the most stable one. |
I'm using PC with Ubuntu 20.04 Linux, with |
Thanks @undera, I'll try pygatt on Windows. FYI Regarding Bleak. They updated API starting v0.8 now the BleakClient doesn't control the event loop but rather executes in the external one: https://github.com/hbldh/bleak |
Ok, I made it work on Mac. Connecting via direct MAC-addr connection. For some reason my Lego Boost got identified either as "Unknown" or "LEGO System A/S". Thanks again! Going to play with it. |
@akava How exactly did you make it work with macos? I used this address with the code to 'successfully' bind to the device, but an exception was thrown:
Traceback (most recent call last): The blue light turns on when I run this command, but the code hangs before the hub object is assigned. I've posted the full output below. Thanks! `>>> from pylgbst.hub import MoveHub
2020-11-22 15:53:55,187 bleak.backends.corebluetooth.PeripheralDelegate DEBUG: peripheral_didUpdateValueForCharacteristic_error_ ^CTraceback (most recent call last): |
I still cannot make it work. Can someone who managed to make it work please describe what needs to be done? I would like to run the Vernie examples. I am using Bleak 0.7.1 and pylgbst 1.2.0. |
I am still confused, is bleak supported or not?
I am trying to run it on a mac:
and I get this:
Mac, Bleak 0.7.1, pylgbst 1.2.0
Thanks
The text was updated successfully, but these errors were encountered: