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
Send OTA Begin command with firmware size
Write firmware in MTU-sized chunks
Send OTA End with SHA256 hash for verification
Send reboot command to boot into new firmware
See also
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.