BootloaderConnection

Represents a connection to an Efento device in bootloader mode.

Properties

Link copied to clipboard

Commands for device in bootloader

Link copied to clipboard
abstract val isConnected: Boolean

Checks if the connection is initialized and established. Returns true if the connection is active, false otherwise.

Functions

Link copied to clipboard
abstract suspend fun connect()

Establishes and initializes a new connection. Safe to call when already connected — returns immediately without reconnecting.

Link copied to clipboard
abstract suspend fun disconnect()

Terminates the existing connection. Safe to call when already disconnected — returns immediately without throwing.