summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyserviceprivate_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-08-27 15:08:47 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-09-02 20:18:32 +0200
commit695afdf1a50340018db68f08be4aed6978e89724 (patch)
tree2a09bc5a02a0c4e34caaa89dc3bbfd26f1499e7d /src/bluetooth/qlowenergyserviceprivate_p.h
parent2da622742aaf2566edea43b541180a7fb23cb899 (diff)
Add QLES::characteristicWritten() signal
The previous characteristicChanged() signal was emitted when the characteristic was updated due to a notification and when the value was changed using writeCharacteristic(). This meant that it was not possible to distinguish the two use cases. The new signal is only emitted in response to writeCharacteristic() whereas the old signal is only emitted when the peripheral indicates a change. Change-Id: Ie8797090f9463ae0e7fb053a42a79afa6829ca75 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/bluetooth/qlowenergyserviceprivate_p.h')
-rw-r--r--src/bluetooth/qlowenergyserviceprivate_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergyserviceprivate_p.h b/src/bluetooth/qlowenergyserviceprivate_p.h
index 9d41f21d..4a98d589 100644
--- a/src/bluetooth/qlowenergyserviceprivate_p.h
+++ b/src/bluetooth/qlowenergyserviceprivate_p.h
@@ -80,6 +80,8 @@ signals:
void error(QLowEnergyService::ServiceError error);
void characteristicChanged(const QLowEnergyCharacteristic &characteristic,
const QByteArray &newValue);
+ void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
+ const QByteArray &newValue);
void descriptorWritten(const QLowEnergyDescriptor &descriptor,
const QByteArray &newValue);