diff options
author | Sven Gothel <[email protected]> | 2020-04-26 14:09:56 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-04-26 14:09:56 +0200 |
commit | 0684224bda555c878cee4b36792d953fed1d481c (patch) | |
tree | 19fd0e54affc28c1283f82ae9db371f475c1477d /java/jni/direct_bt/DBTDevice.cxx | |
parent | b3080c74fec4ed67f9c7de63eac98db2fd920873 (diff) |
Add HCI non LE connect; DBTDevice: Add defaultConnect() for LE and BREDR address types
BREDR address type connect via HCI is based on code review, untested yet.
Java binding is to defaultConnect() now.
Diffstat (limited to 'java/jni/direct_bt/DBTDevice.cxx')
-rw-r--r-- | java/jni/direct_bt/DBTDevice.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx index 80858f6e..873d24d5 100644 --- a/java/jni/direct_bt/DBTDevice.cxx +++ b/java/jni/direct_bt/DBTDevice.cxx @@ -97,7 +97,7 @@ jboolean Java_direct_1bt_tinyb_DBTDevice_disconnectImpl(JNIEnv *env, jobject obj { try { DBTDevice *device = getInstance<DBTDevice>(env, obj); - device->le_disconnect(); + device->disconnect(); } catch(...) { rethrow_and_raise_java_exception(env); } @@ -108,7 +108,7 @@ jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl(JNIEnv *env, jobject obj) { try { DBTDevice *device = getInstance<DBTDevice>(env, obj); - return device->le_connect(); + return device->defaultConnect(); } catch(...) { rethrow_and_raise_java_exception(env); } |