diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-04-10 11:24:45 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-04-15 08:31:03 +0000 |
commit | 6bb265e12c1e59078da9e9190bb11f6ac957b2cd (patch) | |
tree | 3a9d01c6964b98bb1369a01e940d41bd241dc5d8 /src/bluetooth/qlowenergycontroller_android.cpp | |
parent | 2675df60727b9221d2800b6172fbc05ea5437af0 (diff) |
Android: Implement error reporting for char & desc reading
Change-Id: I5652075b4fde4d4927e86f5394baf176f263104f
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_android.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_android.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_android.cpp b/src/bluetooth/qlowenergycontroller_android.cpp index c1fa0813..992427ff 100644 --- a/src/bluetooth/qlowenergycontroller_android.cpp +++ b/src/bluetooth/qlowenergycontroller_android.cpp @@ -560,4 +560,16 @@ void QLowEnergyControllerPrivate::characteristicChanged( emit service->characteristicChanged(characteristic, data); } +void QLowEnergyControllerPrivate::serviceError( + int attributeHandle, QLowEnergyService::ServiceError errorCode) +{ + QSharedPointer<QLowEnergyServicePrivate> service = + serviceForHandle(attributeHandle); + Q_ASSERT(!service.isNull()); + + // ATM we don't really use attributeHandle but later on we might + // want to associate the error code with a char or desc + service->setError(errorCode); +} + QT_END_NAMESPACE |