connectAndAwaitReady

suspend fun RadioClient.connectAndAwaitReady(timeout: Duration = 30.seconds): ConfigBundle(source)

Connect and suspend until the handshake settles, returning the resolved ConfigBundle (HLP-34).

Convenience for one-shot callers that just want to "connect and read configuration":

val bundle = client.connectAndAwaitReady()
println("device firmware ${bundle.metadata?.firmware_version}")

Calls RadioClient.connect and then awaits both ConnectionState.Connected and the first non-null value of RadioClient.configBundle, whichever lands later. Throws MeshtasticException.HandshakeTimeout if the combined wait exceeds timeout.

Throws