Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class DeviceModelRemoteDataSource(client: HttpClient, dispatchers: CoroutineDispatchers)

Fetches the flasher's GLB device models; the URL is the illustration's with the extension swapped.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The values every host's Ktor HttpClient shares. installApiDefaults applies them; a host supplies only its engine.

Link copied to clipboard
object KermitHttpLogger : Logger

Bridges Ktor's HTTP client logging to Kermit.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SerialPortEntry(val name: String, val address: String, val namesRadio: Boolean = false)

A serial port the desktop picker offers: name to show, address to store and reopen. namesRadio is true when the address belongs to one physical radio rather than to a port or a board model.

Functions

Link copied to clipboard

The serial ports present now. On Linux a USB port's SerialPortEntry.address is its /dev/serial/by-id link: the kernel gives a re-enumerated device the next free ttyACM number while the old one is still open, and udev points the link at the new one. Other ports, and other hosts, whose names already follow the device, use the system name.

Link copied to clipboard
fun HttpRequestRetryConfig.configureDefaultRetry()

Shared io.ktor.client.plugins.HttpRequestRetry policy for every engine.

Link copied to clipboard
fun HttpClientConfig<*>.installApiDefaults(json: Json, userAgent: String?, logRequests: Boolean)

What every host's API client installs, whatever its engine: JSON content negotiation, the API base URL, the shared timeouts and retry policy, and request logging through Kermit when logRequests.