diff options
author | Sven Gothel <[email protected]> | 2020-05-24 01:57:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-24 01:57:40 +0200 |
commit | c760eac8addfda8e63ae213827840d251ecadfa0 (patch) | |
tree | be881d530020295d1e903b62a4388f6ba05d1361 /java/jni | |
parent | faffa313cc31c184e861d7bee5f932013e2d9d00 (diff) |
Add Whitelist to DBTManager/DBTAdapter and test (Result: No auto-connection)
To avoid the hassle with HCI connect/disconnect while scanning,
we should test the whitelist supposed to be stored on the adapter to auto-connect.
Initial testing didn't show any connection.
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTAdapter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx index 1e32ade8..030e193b 100644 --- a/java/jni/direct_bt/DBTAdapter.cxx +++ b/java/jni/direct_bt/DBTAdapter.cxx @@ -403,11 +403,11 @@ void Java_direct_1bt_tinyb_DBTAdapter_deleteImpl(JNIEnv *env, jobject obj) } } -jboolean Java_direct_1bt_tinyb_DBTAdapter_startDiscoveryImpl(JNIEnv *env, jobject obj) +jboolean Java_direct_1bt_tinyb_DBTAdapter_startDiscoveryImpl(JNIEnv *env, jobject obj, jboolean keepAlive) { try { DBTAdapter *adapter = getInstance<DBTAdapter>(env, obj); - return adapter->startDiscovery(); + return adapter->startDiscovery(keepAlive); } catch(...) { rethrow_and_raise_java_exception(env); } |