Skip to content

feat: bluetooth socket support#40

Draft
piksel wants to merge 2 commits intomainfrom
feat/btsock
Draft

feat: bluetooth socket support#40
piksel wants to merge 2 commits intomainfrom
feat/btsock

Conversation

@piksel
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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