-
Notifications
You must be signed in to change notification settings - Fork 292
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
bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress is occur. #1036
Comments
I had this problem with pybricksdev, it seems that it was the adapter, once I disabled and enabled it, this started working. |
Connecting to two devices at the same time is problematic for many people. Try connecting to one first and then the other. |
bleak version: 0.20.2 I got the same error, stop scanner before connect and start scanner later works for me. |
This fixes several issues with the implementation. Notably, on Linux trying to scan and connect to two devices at the same time results in: bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress This is worked around by using an asyncio.Lock to ensure only one scan and connect is called at a time. Fixes: #1036 Also fixes error due to main() not being a coroutine: ValueError: a coroutine was expected, got <_GatheringFuture pending> Fixes: #1288 Finally, command line args are added to make it easy to run the example without modifying the code.
This fixes several issues with the implementation. Notably, on Linux trying to scan and connect to two devices at the same time results in: bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress This is worked around by using an asyncio.Lock to ensure only one scan and connect is called at a time. Fixes: #1036 Also fixes error due to main() not being a coroutine: ValueError: a coroutine was expected, got <_GatheringFuture pending> Fixes: #1288 Finally, command line args are added to make it easy to run the example without modifying the code.
bluetoothctl -v
) in case of Linux: 5.64Description
when I do the program, the error occur.
this is my simple program that connects two device in same time.
what should I do for fix the program?
The text was updated successfully, but these errors were encountered: