在 BlueZ 5 中,DBus API 发生了重大变化。我之前有一个基于 BlueZ 4 的 QDbus Controller 库:https://gitorious.org/qt-bluez-demos/
我在谷歌上搜索了很多次,但找不到任何现有的起点来将我的 BlueZ 4 库转换为 BlueZ 5。
注意:我使用的是 Qt 4.8,但 Qt 5.0 似乎有一些 QBluetooth 命名空间,但它还没有针对 BlueZ 5 进行更新:
https://bugreports.qt-project.org/browse/QTBUG-32085?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab
该库也仅限 BlueZ 4:
https://github.com/nemomobile/libbluez-qt/tree/master/bluez-qt
有人能给我一些现有的代码吗?谢谢!
最佳答案
对应为bug tracker entry写道:
The Bluez API has released a new major release which is incompatible to Bluez 4.x. Currently QtBluetooth supports Bluez 4.x only.
不幸的是,这意味着。该错误报告仍处于开放状态,尚未修复。您需要耐心或足够的勇气来挺身而出并为此做出贡献。
关于c++ - Qt C++ BlueZ 5 QDbus 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22230285/