From dfab02bfb43535c54c09dec0d4b31161f1b15162 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 5 Mar 2026 14:56:49 -0600 Subject: [PATCH] refactor(ble): increase default timeout for BLE profiling (#4728) --- .../src/main/kotlin/org/meshtastic/core/ble/BleConnection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ble/src/main/kotlin/org/meshtastic/core/ble/BleConnection.kt b/core/ble/src/main/kotlin/org/meshtastic/core/ble/BleConnection.kt index e31ef96ef..5472eb704 100644 --- a/core/ble/src/main/kotlin/org/meshtastic/core/ble/BleConnection.kt +++ b/core/ble/src/main/kotlin/org/meshtastic/core/ble/BleConnection.kt @@ -157,7 +157,7 @@ class BleConnection( @Suppress("TooGenericExceptionCaught") suspend fun 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 }!!