diff options
author | Sven Gothel <[email protected]> | 2022-02-09 12:30:22 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-02-09 12:30:22 +0100 |
commit | 7f5407befe292e41bd4c03d80c7d5029ef41e473 (patch) | |
tree | 0ef3ff13353ede1cef340a4a13d6d83e03878d54 /java | |
parent | 0bf166576e154c9f8ff430a5efc5371fb6f84560 (diff) |
API doc: Fix DiscoveryPolicy::PAUSE_CONNECTED_UNTIL_READY and PAUSE_CONNECTED_UNTIL_PAIRED, which is without GATT service discovery ..
GATT service discovery is not included anymore, since user is required to call BTDevice::getGattServices()
to initiate MTU exchange and the GATT service discovery.
See new to old:
- commit 1443d3a084342fffacd405fae3c44ef290bd438e
- commit ab9f3dec2d06b9e39241c497e8aa00aaa23966c3
Diffstat (limited to 'java')
-rw-r--r-- | java/org/direct_bt/BTAdapter.java | 3 | ||||
-rw-r--r-- | java/org/direct_bt/DiscoveryPolicy.java | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/java/org/direct_bt/BTAdapter.java b/java/org/direct_bt/BTAdapter.java index f12a7649..671eb284 100644 --- a/java/org/direct_bt/BTAdapter.java +++ b/java/org/direct_bt/BTAdapter.java @@ -189,9 +189,6 @@ public interface BTAdapter extends BTObject * paused until a certain readiness stage has been reached or preserved at all times. * Default is {@link DiscoveryPolicy#PAUSE_CONNECTED_UNTIL_READY}. * - * Using {@link #startDiscovery(boolean, boolean, short, short, byte) startDiscovery(keepAlive=true, ...) and {@link #stopDiscovery()} - * is the recommended workflow for a reliable discovery process. - * * <pre> * + --+-------+--------+-----------+----------------------------------------------------+ * | # | meta | native | keepAlive | Note diff --git a/java/org/direct_bt/DiscoveryPolicy.java b/java/org/direct_bt/DiscoveryPolicy.java index dcd6cc71..db938433 100644 --- a/java/org/direct_bt/DiscoveryPolicy.java +++ b/java/org/direct_bt/DiscoveryPolicy.java @@ -52,11 +52,11 @@ public enum DiscoveryPolicy { */ PAUSE_CONNECTED_UNTIL_DISCONNECTED ((byte) 1), /** - * Pause discovery until all connected {@link BTDevice} reach readiness inclusive optional SMP pairing (~120ms) and GATT service discovery (~700ms), + * Pause discovery until all connected {@link BTDevice} reach readiness inclusive optional SMP pairing (~120ms) without GATT service discovery (~700ms), * effectively until {@link AdapterStatusListener#deviceReady(BTDevice, long)}. This is the default! */ PAUSE_CONNECTED_UNTIL_READY ((byte) 2), - /** Pause discovery until all connected {@link BTDevice} are optionally SMP paired (~120ms), exclusive GATT service discovery (~700ms -> ~1200ms). */ + /** Pause discovery until all connected {@link BTDevice} are optionally SMP paired (~120ms) without GATT service discovery (~700ms). */ PAUSE_CONNECTED_UNTIL_PAIRED ((byte) 3), /** Always keep discovery enabled, i.e. re-enabled if automatically turned-off by HCI host OS as soon as possible. */ ALWAYS_ON ((byte) 4); |