diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2017-01-18 09:14:19 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2017-01-24 14:49:21 +0000 |
commit | 2e60c570b46e69599861969fc949551a058e902d (patch) | |
tree | 13fb3cb6f33af3f63f173f155056626ebba1ea20 /src/android | |
parent | 6b0595b64ea46554a8a63f026c15ab07ea804285 (diff) |
Android: Implement QLEService::descriptorWritten() signals for peripheral
Change-Id: I60e5bdce4256804754909c2538aebe581897e1e9
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java b/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java index b283a4b3..d256fe8c 100644 --- a/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java +++ b/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java @@ -213,6 +213,7 @@ public class QtBluetoothLEServer { if (!preparedWrite) { // regular write if (offset == 0) { descriptor.setValue(value); + leServerDescriptorWritten(qtObject, descriptor, value); } else { // This should not really happen as per Bluetooth spec Log.w(TAG, "onDescriptorWriteRequest: !preparedWrite, offset " + offset + ", Not supported"); @@ -349,4 +350,7 @@ public class QtBluetoothLEServer { public native void leServerCharacteristicChanged(long qtObject, BluetoothGattCharacteristic characteristic, byte[] newValue); + public native void leServerDescriptorWritten(long qtObject, + BluetoothGattDescriptor descriptor, + byte[] newValue); } |