aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-10-13 05:27:14 +0200
committerSven Gothel <[email protected]>2021-10-13 05:27:14 +0200
commit28cc0bf0094bc736ea473c2a2906df34319e6346 (patch)
treee717e2fa5cd5e4b839720f336c1b6f210e9493e8 /java/jni
parentaee8f7273924e03758952c4fadd94d1f1141ae2a (diff)
[BT|DB]GattChar::getUserDescription() and userDescriptionIndex added (from descriptor)
GattDesc.cpp: Convert TYPE* to std::shared_ptr<jau::uuid_t> (missed in prev commit)
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTGattService.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/jni/direct_bt/DBTGattService.cxx b/java/jni/direct_bt/DBTGattService.cxx
index c6082cbe..9685a834 100644
--- a/java/jni/direct_bt/DBTGattService.cxx
+++ b/java/jni/direct_bt/DBTGattService.cxx
@@ -110,7 +110,9 @@ jobject Java_jau_direct_1bt_DBTGattService_getCharsImpl(JNIEnv *env, jobject obj
jobject jcharVal = env_->NewObject(clazz, clazz_ctor, (jlong)characteristic, jservice,
characteristic->handle, jGattCharPropSet,
- uuid, characteristic->value_handle, characteristic->clientCharConfigIndex);
+ uuid, characteristic->value_handle,
+ characteristic->clientCharConfigIndex,
+ characteristic->userDescriptionIndex);
java_exception_check_and_throw(env_, E_FILE_LINE);
JNIGlobalRef::check(jcharVal, E_FILE_LINE);
std::shared_ptr<JavaAnon> jCharRef = characteristic->getJavaObject(); // GlobalRef