mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 14:06:54 +00:00

1. Added support for cert bundle in advanced OTA 2. This allows to easily test example with different public servers
66 lines
2.3 KiB
Plaintext
66 lines
2.3 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.
|
|
|
|
config EXAMPLE_USE_CERT_BUNDLE
|
|
bool "Enable certificate bundle"
|
|
default y
|
|
depends on MBEDTLS_CERTIFICATE_BUNDLE
|
|
help
|
|
Enable trusted root certificate bundle. This approach allows to have
|
|
OTA updates functional with any public server without requirement
|
|
to explicitly add its server certificate.
|
|
|
|
endmenu
|