It's recommended to cancel discovery before connecting

here
cpfeiffer 2015-11-01 23:32:25 +01:00
parent 952a383856
commit c27459b6cc
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ public final class BtLEQueue {
}
}
LOG.info("Attempting to connect to " + mGbDevice.getName());
mBluetoothAdapter.cancelDiscovery();
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
boolean result;
synchronized (mGattMonitor) {