diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-06-06 13:24:38 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-06-16 14:17:22 +0200 |
commit | 9ad271c1448e1d08ccfece022fc2a8c571a6fd1f (patch) | |
tree | 44b220f5eae1e7339f6a7a8e4cebe1f2bc32c685 /tests/auto/auto.pro | |
parent | 8b6881d13f569acaec75e4a669c467c2768678ad (diff) |
Create 2nd version of QLowEnergyController and add related unit test
The Bluez implementation is the only working implementation for BTLE.
However the current approach of using gatttool via QProcess is not
viable going forward. The tool output is not standardized, the Bluez
developers don't recommend it for anything but debugging and some
Linux distros don't even ship it. Since Bluez does not have any high
level API for BTLE GATT we have to use L2CP sockets to communicate
with the GATT server of the peer device.
The current QLowEnergyController API needs a lot of API changes
going forward as some elements cause problems in the long term.
In summary we need a new internal implementation and a new API for
QLowEnergyController. It is far too much effort to change both elements
at the same time. Hence QLowEnergyControllerNew was added with first
simple API elements. Ultimately it should replace the existing class.
For now the old API stays as is for reference purposes. All other
BTLE classes work just fine for now.
Last but not least a unit test was added. The test assumes the existence
of the TI Sensor tag and verifies all its known characteristics
and descriptors. Ultimately it will help to verify the proper
detection of all details. Right now the test detects all services
and characteristics but not all descriptors.
Change-Id: I6ff1a16da1604be57f5564ae99919ffe7187d02e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/auto.pro')
-rw-r--r-- | tests/auto/auto.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 509f67d0..62318c88 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -19,7 +19,8 @@ qtHaveModule(bluetooth) { qbluetoothserver \ qlowenergycharacteristicinfo \ qlowenergydescriptorinfo \ - qlowenergyserviceinfo + qlowenergyserviceinfo \ + qlowenergycontroller } qtHaveModule(nfc) { |