Builder

DSL builder for RadioClient.

transport and storage are required; all other settings have sensible defaults.

val client = RadioClient.Builder()
.transport(TcpTransport(host = "192.168.1.42", port = 4403))
.storage(InMemoryStorageProvider())
.build()

Since

0.1.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Configure the auto-reconnect supervisor with a pre-built AutoReconnectConfig.

fun autoReconnect(enabled: Boolean = true, initialBackoff: Duration = 1.seconds, maxBackoff: Duration = 60.seconds, maxAttempts: Int? = null, backoffMultiplier: Double = 2.0, jitter: Double = 0.2): RadioClient.Builder

Configure the engine's built-in auto-reconnect supervisor.

Link copied to clipboard

Enable or disable automatic time sync on connect.

Link copied to clipboard

Build and return a RadioClient.

Link copied to clipboard

Set a custom clock (useful for testing deterministic time-based behaviour).

Link copied to clipboard

Override the coroutine context for the engine actor and helper coroutines.

Link copied to clipboard

Disable BLE heartbeats.

Link copied to clipboard

Set a custom logger.

Link copied to clipboard
fun protocolLogging(level: LogLevel, redactor: PayloadRedactor = PayloadRedactor.Default): RadioClient.Builder

Enable protocol-level logging.

Link copied to clipboard

Configure the per-RPC timeout for AdminApi / TelemetryApi / RoutingApi calls.

Link copied to clipboard

Configure the per-send ACK timeout.

Link copied to clipboard

Set the storage provider (required).

Link copied to clipboard

Set a pre-built RadioTransport instance directly.