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

feat: bluetooth socket support #40

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: bluetooth socket support #40

wants to merge 2 commits into from

Conversation

piksel
Copy link
Owner

@piksel piksel commented Aug 5, 2022

Allows directly printing to the printer through a BlueZ BluetoothSocket without pairing and creating a virtual serial device (/dev/tty* or /dev/rfcomm*). Windows and mac support probably needs some work, but using serial ports are still supported as before.

Fixes #39

@tyalie
Copy link
Collaborator

tyalie commented Aug 7, 2022

It works over UI, but it currently throws an async error over CLI when I don't define the device, as it tries to to execute find_default_device without awaiting it, similar errors happen when trying to print using an rfcomm0 device. But I would gladly help there.

@piksel
Copy link
Owner Author

piksel commented Aug 11, 2022

Yeah, I am currently working on re-implementing this using using QtBluetooth instead. It uses BlueZ as well, but seems more stable.
Instead of clearing all entries, async polling, and then updating the list, it will add every device as discovered (using signals). That way we don't need to use qasync and we can poll for a long time without having the user wait for the entire poll duration.
Making this draft for now, and probably superseding it for the new branch if no other problems come up.

@piksel piksel marked this pull request as draft August 11, 2022 12:24
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

Successfully merging this pull request may close these issues.

Linux: Support Bluetooth without /dev/rfcomm
2 participants