Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Restore point for changes to BT/BLE device connection code -- Remedy …
Browse files Browse the repository at this point in the history
…long service discovery times -- Testing VII
  • Loading branch information
maxieds committed Aug 4, 2022
1 parent 6790dc6 commit 0910775
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ public void run() {
stopConnectingDevices();
startConnectingDevices();
} else if (!btGattRef.discoverServices()) {
Utils.displayToastMessage("Discovering bluetooth services. Prepare to wait ...", Toast.LENGTH_LONG);
Utils.displayToastMessage("Discovering bluetooth services.\nPrepare to wait ...", Toast.LENGTH_LONG);
discoverServicesHandler.postDelayed(this, BluetoothBroadcastReceiver.CHECK_DISCOVER_SVCS_INTERVAL);
} else if (configureGattConnector()) {
BluetoothBroadcastReceiver.printServicesSummaryListToLog(btGattRef);
notifyBluetoothBLEDeviceConnected();
} else {
Utils.displayToastMessage("Discovering bluetooth services. Prepare to wait ...", Toast.LENGTH_LONG);
Utils.displayToastMessage("Discovering bluetooth services.\nPrepare to wait ...", Toast.LENGTH_LONG);
discoverServicesHandler.postDelayed(this, BluetoothBroadcastReceiver.CHECK_DISCOVER_SVCS_INTERVAL);
}
}
Expand Down

0 comments on commit 0910775

Please sign in to comment.