summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2017-11-02 09:49:31 +0100
committerAlex Blasche <alexander.blasche@qt.io>2017-12-13 07:40:18 +0000
commit37a3b8104588605f9055ea93e59112e48a114dc1 (patch)
treebbb0c97f26fd5f9667d3339302cb73e134e9f3ed /src/bluetooth/qlowenergycontroller.cpp
parent49b6eaede5ce149a7517718c5c59b92d25adb7d5 (diff)
Implement bluetoothd version test
This patch adds the ability to detect the underlying version of bluetoothd. The bluetoothd version provides the means to decide whether the DBUS LE API is sufficient to fullfil the QLEController requirements. Bluez DBus LE API is usable since Bluez 5.42. Prior versions only had experimental DBus LE APIs. Task-number: QTBUG-46819 Change-Id: Ic047fba27c01ee40571abb0c4eb45828f4a64475 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r--src/bluetooth/qlowenergycontroller.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp
index cdb16939..3be1aed3 100644
--- a/src/bluetooth/qlowenergycontroller.cpp
+++ b/src/bluetooth/qlowenergycontroller.cpp
@@ -295,8 +295,9 @@ void registerQLowEnergyControllerMetaType()
static QLowEnergyControllerPrivate *privateController()
{
#if QT_CONFIG(bluez) && !defined(QT_BLUEZ_NO_BTLE)
- if (isBluez5DbusGatt()) {
- qCWarning(QT_BT) << "Using BlueZ DBus API";
+ // for now Bluez DBus disabled
+ if (false && bluetoothdVersion() >= QVersionNumber(5, 42)) {
+ qCWarning(QT_BT) << "Using BlueZ LE DBus API";
return new QLowEnergyControllerPrivateBluezDBus();
} else {
qCWarning(QT_BT) << "Using BlueZ kernel ATT interface";