aboutsummaryrefslogtreecommitdiffstats
path: root/java/tinyb
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-02 03:05:46 +0200
committerSven Gothel <[email protected]>2020-07-02 03:05:46 +0200
commitd3910d9e4c8b188961c56e88395a87fccd80a044 (patch)
tree8d3b773723f4d2c799bd2a1104e6e387bafa2abd /java/tinyb
parentb57ce9cff420cdb1b307c5f7f92151831a4ce8bf (diff)
Support BDADDR_LE_RANDOM (p1): Add BLERandomAddressType, distinguish HCIAddressType..., Move EUI48 into direct_bt namespace
Add BLERandomAddressType Exposed in DBTDevice and BluetoothDevice C++ and Java. See "BT Core Spec v5.2: Vol 6 LE, Part B Link Layer Specification: 1.3.2 Random device Address" +++ Distinguish HCIAddressType -> HCILEPeerAddressType + HCILEOwnAddressType As used for HCIHandler::le_create_conn(..) See "BT Core Spec v5.2: Vol 4, Part E Host Controller Interface (HCI) Functionality: 7.8.12: LE Create Connection command" DBTDevice::connectLE(..) translates its own BDAddressType -> HCILEPeerAddressType using BLERandomAddressType (BDAddressType, address). Currently only HCILEPeerAddressType::STATIC_PUBLIC is allowed and passed through. +++ Move EUI48 into direct_bt namespace
Diffstat (limited to 'java/tinyb')
-rw-r--r--java/tinyb/dbus/DBusDevice.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/tinyb/dbus/DBusDevice.java b/java/tinyb/dbus/DBusDevice.java
index 19d33aa6..ac12d01e 100644
--- a/java/tinyb/dbus/DBusDevice.java
+++ b/java/tinyb/dbus/DBusDevice.java
@@ -31,6 +31,7 @@ package tinyb.dbus;
import java.util.List;
import java.util.Map;
+import org.tinyb.BLERandomAddressType;
import org.tinyb.BluetoothAddressType;
import org.tinyb.BluetoothDevice;
import org.tinyb.BluetoothException;
@@ -117,6 +118,9 @@ public class DBusDevice extends DBusObject implements BluetoothDevice
public BluetoothAddressType getAddressType() { return BluetoothAddressType.BDADDR_LE_PUBLIC; /* FIXME */}
@Override
+ public BLERandomAddressType getBLERandomAddressType() { return BLERandomAddressType.UNDEFINED; /* FIXME */ }
+
+ @Override
public native String getName();
@Override