Bootloader Commands
interface BootloaderCommands
Commands that can be run against a device while it is running its bootloader rather than its application.
A device is in this state during a firmware update, or after its application failed to start. Reach these through BootloaderConnection.commands.
Functions
Link copied to clipboard
abstract suspend fun exitBootloader(resetApplicationToDefaults: Boolean = false, updateProgress: suspend (progress: Progress) -> Unit = {})
Exit bootloader.
Link copied to clipboard
abstract suspend fun getDiagnosticData(type: BootloaderDiagnosticData.DiagnosticType, updateProgress: suspend (progress: Progress) -> Unit = {}): BootloaderDiagnosticData
Link copied to clipboard
abstract suspend fun getSoftwareVersions(updateProgress: suspend (progress: Progress) -> Unit = {}): BootloaderSoftwareVersions
Link copied to clipboard
abstract suspend fun updateFirmware(firmwareFile: ByteArray, infoFile: ByteArray, updateProgress: suspend (progress: Progress) -> Unit = {})
Updates firmware of the device.