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

Convert from QtConnectivity to Bluez 5 DBus API #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llewelld
Copy link

Provides a wrapper around the Bluez 5 DBus API to replace the QtConnectivity Qt Bluetooth classes needed for the app.

There are still some missing features and TODOs. Most notably, the scan currently doesn't filter on BLE devices, and error reporting needs improvement.

I've also unfortunately only had a chance to do minimal testing, it definitely needs more.

To help with making clear what's going on, I've included links to the relevant Bluez 5 docs, and to the equivalent dbus-send and dbus-monitor calls that would be used at the command line to achieve the same results (I find these to be very useful for testing).

As an explanation for this PR, your app covers a good cross-section of Bluetooth functionality (especially BLE) so it seemed like a good example for testing out the process of switching from QtConnectivity to Bluez 5. I was hoping this might be useful to others considering making the switch too. I apologise for its rather raw state.

Provides a wrapper around the Bluez 5 DBus API to replace the
QtConnectivity Qt Bluetooth classes needed for the app.

There are still some missing features and TODOs. Most notably, the scan
currently doesn't filter on BLE devices, and error reporting needs
improvement.
@martonmiklos
Copy link
Owner

Hi @llewelld

As I mentioned on the forum: Is the dropping of the QtConnectivity is carved into stone? Bluez5 compatible QtConnectivity looks to be existing since ages. What is the reason of not going that direction? Legal issues? Backporting efforts?

@llewelld
Copy link
Author

As I mentioned on the forum: Is the dropping of the QtConnectivity is carved into stone?

I've replied there on the forum to avoid splitting the discussion across two places.

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.

None yet

2 participants