summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyservice.cpp
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-05-28 10:57:33 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2021-06-03 10:44:25 +0200
commit88361d2c40d9c27fc4a8cfb35999bf74123b1dbf (patch)
treef5c09dd7ba57a654ff937953ecc53b1b840d1f10 /src/bluetooth/qlowenergyservice.cpp
parentd87cdc811ba8cedc3870eabbc06444ddd7dcf274 (diff)
Add convenience API to access CCCD
Notification or indication for a characteristic can be enabled/disabled by writing special bit patterns into the CCCD, the client characteristic configuration descriptor. Until now, it was necessary to obtain this descriptor using its UUID and then knowing the bit patterns to write into it. This patch adds a method named "cccd" to obtain the cccd and adds named constants for enabling and disabling indication and notification. Thus, the developer does not have to look them up. Fixes: QTBUG-92986 Task-number: QTBUG-75341 Change-Id: I8c510d5ef66909bcf6e3885076bb3629767a9064 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergyservice.cpp')
-rw-r--r--src/bluetooth/qlowenergyservice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergyservice.cpp b/src/bluetooth/qlowenergyservice.cpp
index fb939826..13a80e87 100644
--- a/src/bluetooth/qlowenergyservice.cpp
+++ b/src/bluetooth/qlowenergyservice.cpp
@@ -356,7 +356,7 @@ QT_BEGIN_NAMESPACE
role, this signal is emitted when the value of \a characteristic is changed by an event on the
peripheral/device side. In that case, the signal emission implies that change notifications must
have been activated via the characteristic's
- \l {DescriptorType::ClientCharacteristicConfiguration}{ClientCharacteristicConfiguration}
+ \l {QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration}{ClientCharacteristicConfiguration}
descriptor prior to the change event on the peripheral. More details on how this might be
done can be found further \l{notifications}{above}.