Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Clarify when BleManager.close() should be called
See #616
  • Loading branch information
mmeisel authored Aug 11, 2025
commit 7aa0febdea186b8d74e684fcb67eb7c275810d9e
8 changes: 5 additions & 3 deletions ble/src/main/java/no/nordicsemi/android/ble/BleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,12 @@ protected void onManagerReady() {
}

/**
* Closes and releases resources. This method will be called automatically after
* calling {@link #disconnect()}. When the device disconnected with link loss and
* Closes and releases resources. When the device disconnected with link loss and
* {@link ConnectRequest#shouldAutoConnect()} returned true you have to call this method to
* close the connection.
* close the connection. If you intend to reuse this instance for multiple connections,
* do not call this method after {@link #disconnect()}. If you are done with this instance,
* call this method from the {@link #disconnect()} completion handler, e.g.
* <code>disconnect().then { close() }</code>.
*/
public void close() {
try {
Expand Down