connectAndAwaitReady
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}")Content copied to clipboard
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
any failure surfaced by RadioClient.connect
if timeout elapses first