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

Python SDK does not handle pairing syntax of Bluetoothctl >= Version 5.66 #379

Closed
simohn opened this issue Aug 7, 2023 · 3 comments · Fixed by #382
Closed

Python SDK does not handle pairing syntax of Bluetoothctl >= Version 5.66 #379

simohn opened this issue Aug 7, 2023 · 3 comments · Fixed by #382
Assignees
Labels
bug Something isn't working

Comments

@simohn
Copy link

simohn commented Aug 7, 2023

Component
What is the bug in?

  • Demos (python sdk, etc)
  • Specs (BLE , HTTP)

Describe the bug
With newer versions of bluetoothctl the pairing process fails, because the syntax of showing the paired devices has changed from paired-devices to devices Paired.

To Reproduce
Try to pair a gopro with a new version of bluetootctl. (I don't know exactly from which version on the syntax has changed. The version which I have tested it with is 5.66)

Expected behavior
The pairing process should work.

Hardware

  • Camera: Hero10Black
  • Desktop if applicable: Raspberry Pi with Debian

Solution
Code change in bleak_wrapper.py

@simohn simohn added the bug Something isn't working label Aug 7, 2023
@tcamise-gpsw tcamise-gpsw self-assigned this Aug 15, 2023
@tcamise-gpsw tcamise-gpsw linked a pull request Aug 15, 2023 that will close this issue
@tcamise-gpsw
Copy link
Collaborator

I have a fix for this and also added some more RPI bluetoothctl support. Once it passes checks, I'll merge and release a new version of the SDK.

This whole bluetoothctl thing is getting kind of hacky but it's really just a temporary solution until bleak supports linux pairing

@tcamise-gpsw tcamise-gpsw changed the title Pairing process fails Python SDK does not handle pairing syntax of Bluetoothctl >= Version 5.66 Aug 15, 2023
@tcamise-gpsw
Copy link
Collaborator

fix has been published in 0.13.1 release

@simohn
Copy link
Author

simohn commented Aug 25, 2023

Nice thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants