aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/direct_bt/DBTDevice.cxx
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-04-26 14:09:56 +0200
committerSven Gothel <[email protected]>2020-04-26 14:09:56 +0200
commit0684224bda555c878cee4b36792d953fed1d481c (patch)
tree19fd0e54affc28c1283f82ae9db371f475c1477d /java/jni/direct_bt/DBTDevice.cxx
parentb3080c74fec4ed67f9c7de63eac98db2fd920873 (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.cxx4
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);
}