diff options
author | Sven Gothel <[email protected]> | 2020-05-11 07:28:36 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-11 07:28:36 +0200 |
commit | 5f6a25d8c9bc00b873c5770360e95071206c26ea (patch) | |
tree | ba67eaa10dec6392578e2e1d367bf3a619399322 /examples/java/ScannerTinyB01.java | |
parent | 09cd1183b3599357b05c426e2b59e8df813304c5 (diff) |
ScannerTinyB00/01: stopDiscovery() will not shut down everything using direct_bt, ..
.. however, keeping discovery alive while GATT processing will [naturally] slow down performance.
Therefor, discovery should be stopped before GATT processing if possible.
Diffstat (limited to 'examples/java/ScannerTinyB01.java')
-rw-r--r-- | examples/java/ScannerTinyB01.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/java/ScannerTinyB01.java b/examples/java/ScannerTinyB01.java index 97e5b311..2e540135 100644 --- a/examples/java/ScannerTinyB01.java +++ b/examples/java/ScannerTinyB01.java @@ -262,8 +262,6 @@ public class ScannerTinyB01 { System.out.println("Could not connect device: "+(t4-t3)+" ms, total "+(t4-t0)+" ms"); System.exit(-1); } - // Will shut down everything .. ?? - //adapter.stopDiscovery(); final List<BluetoothGattService> allBluetoothServices = sensor.getServices(); if ( null == allBluetoothServices || allBluetoothServices.isEmpty() ) { |