RadioTransportFactory

Creates RadioTransport instances for specific device addresses.

Implemented per-platform to provide the correct hardware transport (BLE, Serial, TCP).

Properties

Link copied to clipboard

Whether this build can actually replay a packet capture rather than silently degrading to the plain mock. The capture is a locally generated artifact that is not checked in, so most builds ship without it.

Link copied to clipboard
abstract val mockTransportEnabled: StateFlow<Boolean>

Whether the virtual demo transports (m mock / r replay) may be offered and bound right now.

Link copied to clipboard

The device types supported by this factory.

Functions

Link copied to clipboard

Creates a transport for the given address, or a NOP implementation if invalid/unsupported.

Link copied to clipboard
abstract fun isAddressValid(address: String?): Boolean

Checks if the given address represents a valid, supported transport type.

Link copied to clipboard
abstract fun toInterfaceAddress(interfaceId: InterfaceId, rest: String): String

Constructs a full radio address for the specific interfaceId and rest identifier.