refactor(ble): increase default timeout for BLE profiling (#4728)

This commit is contained in:
James Rich
2026-03-05 14:56:49 -06:00
committed by GitHub
parent a854c839e4
commit dfab02bfb4

View File

@@ -157,7 +157,7 @@ class BleConnection(
@Suppress("TooGenericExceptionCaught")
suspend fun <T> profile(
serviceUuid: Uuid,
timeout: kotlin.time.Duration = 10.seconds,
timeout: kotlin.time.Duration = 30.seconds,
setup: suspend CoroutineScope.(no.nordicsemi.kotlin.ble.client.RemoteService) -> T,
): T {
val p = peripheralFlow.first { it != null }!!