EspOtaDfuProtocol

Espressif ESP-IDF OTA DFU protocol implementation.

Transfers firmware by writing chunks to the OTA data characteristic, then verifies integrity via SHA256 hash and switches the boot partition.

Transfer flow

  1. Send OTA Begin command with firmware size

  2. Write firmware in MTU-sized chunks

  3. Send OTA End with SHA256 hash for verification

  4. Send reboot command to boot into new firmware

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun performDfu(transport: DfuTransport, firmware: FirmwarePackage, options: DfuOptions): Flow<DfuProgress>

Execute a complete firmware update and emit progress.