mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-31 20:21:36 -04:00
refactor(ble): increase default timeout for BLE profiling (#4728)
This commit is contained in:
@@ -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 }!!
|
||||
|
||||
Reference in New Issue
Block a user