FirmwarePackage

sealed interface FirmwarePackage

Parsed firmware ready for DFU transfer.

Each DFU protocol has its own firmware layout. Use the appropriate subtype:

  • Nordic for Nordic Semiconductor Secure DFU v2 (.zip packages)

  • McuBoot for MCUboot/Zephyr SMP-based DFU (.bin images)

  • EspOta for Espressif ESP-IDF OTA updates (.bin images)

See also

Inheritors

Types

Link copied to clipboard
class EspOta(val firmware: ByteArray) : FirmwarePackage

Espressif ESP-IDF OTA firmware image.

Link copied to clipboard
class McuBoot(val image: ByteArray, val imageIndex: Int = 0) : FirmwarePackage

MCUboot firmware image for SMP-based DFU.

Link copied to clipboard
class Nordic(val initPacket: ByteArray, val firmware: ByteArray) : FirmwarePackage

Nordic Semiconductor Secure DFU v2 firmware package.

Properties

Link copied to clipboard
abstract val totalBytes: Long

combined firmware payload size in bytes