summaryrefslogtreecommitdiffstats
path: root/src/android/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/bluetooth')
-rw-r--r--src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java4
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);
}