apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothService / disconnectAndClose

disconnectAndClose

fun disconnectAndClose(reason: Reason = BluetoothDisconnectedException.Reason.USER_INITIATED): Task<Unit>

Disconnects an existing connection or cancels a pending connection. The Disconnect has a TIMEOUT defined in DISCONNECT_TIMEOUT, which is 3 seconds.