diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-08-27 10:57:08 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-09-02 20:18:21 +0200 |
commit | 4ab9c732a466dc793e5ec162a928d4350a29281c (patch) | |
tree | b5fb9c1e074fb8228936d34894ab61dd452e003f /src/bluetooth/qlowenergycharacteristic.cpp | |
parent | bb4de7e992fc673884db553977b2756a165278b5 (diff) | |
download | qtconnectivity-4ab9c732a466dc793e5ec162a928d4350a29281c.tar.gz |
Add support for BTLE write command (BlueZ/Linux)
So far, we only supported write requests which reply with write
responses.
Change-Id: Ibdad36dcf18dec23260f003911b9361cc4ab1e3d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/bluetooth/qlowenergycharacteristic.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycharacteristic.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycharacteristic.cpp b/src/bluetooth/qlowenergycharacteristic.cpp index 69f68a59..8b7297d0 100644 --- a/src/bluetooth/qlowenergycharacteristic.cpp +++ b/src/bluetooth/qlowenergycharacteristic.cpp @@ -182,10 +182,19 @@ QLowEnergyCharacteristic::PropertyTypes QLowEnergyCharacteristic::properties() c } /*! - Returns the value of the characteristic. + Returns the cached value of the characteristic. If the characteristic's \l properties() permit writing of new values, the value can be updated using \l QLowEnergyService::writeCharacteristic(). + + The cache is updated during the associated service's + \l {QLowEnergyService::discoverDetails()} {detail discovery}, a successful + \l {QLowEnergyService::writeCharacteristic()}{write operation} or when an update + notification is received. + + The returned \l QByteArray is empty if the characteristic does not have the + \l {QLowEnergyCharacteristic::Read}{read permission}. However, a non-readable + characteristic may obtain a non-empty value via a related notification or write operation. */ QByteArray QLowEnergyCharacteristic::value() const { |