aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-08 01:49:18 +0100
committerSven Gothel <[email protected]>2021-11-08 01:49:18 +0100
commit1403a59eeb371ddfab0a0b2ec3046cefc5d00cfc (patch)
tree1964d78ff95619df9a88ca78ff14e7d328951e74 /java/jni
parentb6fcd02611f70d755c4424716fc7c4586846c092 (diff)
Fix JNI DBTGattService_getCharsImpl(): Missed 'userDescriptionIndex' in _characteristicClazzCtorArgs
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTGattService.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/jni/direct_bt/DBTGattService.cxx b/java/jni/direct_bt/DBTGattService.cxx
index 9685a834..bfed4064 100644
--- a/java/jni/direct_bt/DBTGattService.cxx
+++ b/java/jni/direct_bt/DBTGattService.cxx
@@ -60,7 +60,7 @@ void Java_jau_direct_1bt_DBTGattService_deleteImpl(JNIEnv *env, jobject obj, jlo
}
}
-static const std::string _characteristicClazzCtorArgs("(JLjau/direct_bt/DBTGattService;SLorg/direct_bt/GattCharPropertySet;Ljava/lang/String;SI)V");
+static const std::string _characteristicClazzCtorArgs("(JLjau/direct_bt/DBTGattService;SLorg/direct_bt/GattCharPropertySet;Ljava/lang/String;SII)V");
static const std::string _gattCharPropSetClassName("org/direct_bt/GattCharPropertySet");
static const std::string _gattCharPropSetClazzCtorArgs("(B)V");
@@ -91,8 +91,9 @@ jobject Java_jau_direct_1bt_DBTGattService_getCharsImpl(JNIEnv *env, jobject obj
DBTGattChar(final long nativeInstance, final DBTGattService service,
final short handle, final GattCharPropertySet properties,
final String value_type_uuid, final short value_handle,
- final int clientCharacteristicsConfigIndex)
- */
+ final int clientCharacteristicsConfigIndex,
+ final int userDescriptionIndex)
+ */
std::function<jobject(JNIEnv*, jclass, jmethodID, BTGattChar *)> ctor_char =
[&gattCharPropSetClazz, &gattCharPropSetClazzCtor](JNIEnv *env_, jclass clazz, jmethodID clazz_ctor, BTGattChar *characteristic)->jobject {
// prepare adapter ctor