diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2016-11-08 16:47:51 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2016-11-09 14:15:40 +0000 |
commit | 8c2f88f2294ea871e374ef1a13ea4793854bd214 (patch) | |
tree | 5bea901e0caea907838c20812b955387b8531803 /src/bluetooth/qlowenergycontroller_osx_p.h | |
parent | 85a626e83fa90bfae09be28e32c957f6bab2d861 (diff) |
Emit descriptorWritten for notification/indication enabled/disabled
From CoreBluetooth's point of view - this is just a callback, not a
descriptor write request (they even consider all descriptors immutable
in peripheral), but for Qt it should be a descriptor write operation,
and we must emit a signal.
Oh, and set endHandle correctly on a LE service object!
Change-Id: I71922507a6ece987ad8b5c317ef618301ae240c2
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_osx_p.h')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_osx_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_osx_p.h b/src/bluetooth/qlowenergycontroller_osx_p.h index b7399ed7..5cceb9e6 100644 --- a/src/bluetooth/qlowenergycontroller_osx_p.h +++ b/src/bluetooth/qlowenergycontroller_osx_p.h @@ -104,6 +104,7 @@ private Q_SLOTS: void _q_characteristicUpdated(QLowEnergyHandle charHandle, const QByteArray &value); void _q_descriptorRead(QLowEnergyHandle descHandle, const QByteArray &value); void _q_descriptorWritten(QLowEnergyHandle charHandle, const QByteArray &value); + void _q_notificationEnabled(QLowEnergyHandle charHandle, bool enabled); void _q_LEnotSupported(); void _q_CBManagerError(QLowEnergyController::Error error); |