diff options
author | Sven Gothel <[email protected]> | 2020-04-26 01:53:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-04-26 01:53:28 +0200 |
commit | 0c3be5a703def35ddfcf50d66ece608411fd9976 (patch) | |
tree | 49e7747bddbb510d5587d3cd34f2860d74383654 /java/tinyb | |
parent | 1bdde736d5a4c929ca84c48d62b507bd08dd2eb9 (diff) |
DBTManager / DBTDeviceStatusListener: Refine events; java: Keep alive discovery; Remove discovery thread (1)
DBTAdapter: Keep alive discovery
DBTDeviceStatusListener (incl Java binding:
- DBTDeviceDiscoveryListener -> DBTDeviceStatusListener to cover more functionality
- Rename deviceAdded -> deviceFound, to match BlueZ event naming
- Rename deviceRemoved -> deviceDisconnected
- Add deviceConnected
HCIComm/DBTAdapter: Use HCIAddressType where applicable for clarity
MgmtEvent: Add timestamp
MgmtEvent: Add MgmtEvtDeviceConnectFailed, MgmtEvtDeviceAdded, MgmtEvtDeviceRemoved, MgmtEvtDeviceUnpaired
+++
DBTAdapter.java remove discovery thread (part 1)
- Use events, no more discovery polling required
- TODO: Same for native DBTAdapter.cpp!
Diffstat (limited to 'java/tinyb')
-rw-r--r-- | java/tinyb/dbus/DBusAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/tinyb/dbus/DBusAdapter.java b/java/tinyb/dbus/DBusAdapter.java index 973d3e8d..b49e9fc7 100644 --- a/java/tinyb/dbus/DBusAdapter.java +++ b/java/tinyb/dbus/DBusAdapter.java @@ -35,7 +35,7 @@ import java.util.UUID; import org.tinyb.BluetoothAdapter; import org.tinyb.BluetoothDevice; -import org.tinyb.BluetoothDeviceDiscoveryListener; +import org.tinyb.BluetoothDeviceStatusListener; import org.tinyb.BluetoothException; import org.tinyb.BluetoothManager; import org.tinyb.BluetoothNotification; @@ -149,7 +149,7 @@ public class DBusAdapter extends DBusObject implements BluetoothAdapter public native boolean getDiscovering(); @Override - public void setDeviceDiscoveryListener(final BluetoothDeviceDiscoveryListener l) { + public void setDeviceStatusListener(final BluetoothDeviceStatusListener l) { throw new UnsupportedOperationException(); // FIXME } |