mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 04:57:38 +00:00

This commit enabled configurable OTA resumption feature in advanced ota example. This resumes downloading OTA image from where it left off in case of an error or reboot. Closes https://github.com/espressif/esp-idf/issues/13127
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
config EXAMPLE_FIRMWARE_UPGRADE_URL
|
|
string "Firmware Upgrade URL"
|
|
default "https://192.168.2.106:8070/hello_world.bin"
|
|
help
|
|
URL of server which hosts the firmware image.
|
|
|
|
config EXAMPLE_FIRMWARE_UPGRADE_URL_FROM_STDIN
|
|
bool
|
|
default y if EXAMPLE_FIRMWARE_UPGRADE_URL = "FROM_STDIN"
|
|
|
|
config EXAMPLE_SKIP_COMMON_NAME_CHECK
|
|
bool "Skip server certificate CN fieldcheck"
|
|
default n
|
|
help
|
|
This allows you to skip the validation of OTA server certificate CN field.
|
|
|
|
config EXAMPLE_SKIP_VERSION_CHECK
|
|
bool "Skip firmware version check"
|
|
default n
|
|
help
|
|
This allows you to skip the firmware version check.
|
|
|
|
config EXAMPLE_OTA_RECV_TIMEOUT
|
|
int "OTA Receive Timeout"
|
|
default 5000
|
|
help
|
|
Maximum time for reception
|
|
|
|
config EXAMPLE_ENABLE_PARTIAL_HTTP_DOWNLOAD
|
|
bool "Enable partial HTTP download"
|
|
default n
|
|
select ESP_TLS_CLIENT_SESSION_TICKETS
|
|
help
|
|
This enables use of Range header in esp_https_ota component.
|
|
The firmware image will be downloaded over multiple HTTP requests,
|
|
with session resumption enabled between them.
|
|
|
|
config EXAMPLE_HTTP_REQUEST_SIZE
|
|
int "HTTP request size"
|
|
default MBEDTLS_SSL_IN_CONTENT_LEN
|
|
depends on EXAMPLE_ENABLE_PARTIAL_HTTP_DOWNLOAD
|
|
help
|
|
This options specifies HTTP request size. Number of bytes specified
|
|
in this option will be downloaded in single HTTP request.
|
|
|
|
config EXAMPLE_ENABLE_OTA_RESUMPTION
|
|
bool "Enable OTA resumption"
|
|
default n
|
|
help
|
|
This enables the OTA resumption feature.
|
|
This option allows one to configure the OTA process to resume downloading the OTA image
|
|
from where it left off in case of an error or reboot.
|
|
|
|
endmenu
|