From 861d425a5e15741a14ad3bfa2365334b35fd644e Mon Sep 17 00:00:00 2001 From: Chen Wu Date: Fri, 6 Dec 2024 14:44:31 +0800 Subject: [PATCH] feat: Supported ota by specifying the url --- module_config/module_esp8266_1mb/sdkconfig.defaults | 3 +++ module_config/module_esp8266_1mb/sdkconfig_silence.defaults | 3 +++ module_config/module_esp8266_default/sdkconfig.defaults | 3 +++ .../module_esp8266_default/sdkconfig_silence.defaults | 3 +++ module_config/module_esp8266_qcloud/sdkconfig.defaults | 3 +++ module_config/module_esp8266_qcloud/sdkconfig_silence.defaults | 3 +++ 6 files changed, 18 insertions(+) diff --git a/module_config/module_esp8266_1mb/sdkconfig.defaults b/module_config/module_esp8266_1mb/sdkconfig.defaults index e2d00541..c43fb35d 100644 --- a/module_config/module_esp8266_1mb/sdkconfig.defaults +++ b/module_config/module_esp8266_1mb/sdkconfig.defaults @@ -108,3 +108,6 @@ CONFIG_NEWLIB_LIBRARY_LEVEL_FLOAT_NANO=y # LOG CONFIG_LOG_DEFAULT_LEVEL_ERROR=y + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y diff --git a/module_config/module_esp8266_1mb/sdkconfig_silence.defaults b/module_config/module_esp8266_1mb/sdkconfig_silence.defaults index 8634e6c4..f1aa86f5 100644 --- a/module_config/module_esp8266_1mb/sdkconfig_silence.defaults +++ b/module_config/module_esp8266_1mb/sdkconfig_silence.defaults @@ -109,3 +109,6 @@ CONFIG_NEWLIB_LIBRARY_LEVEL_FLOAT_NANO=y # LOG CONFIG_LOG_DEFAULT_LEVEL_NONE=y CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=y + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y diff --git a/module_config/module_esp8266_default/sdkconfig.defaults b/module_config/module_esp8266_default/sdkconfig.defaults index 2fbdef78..309dde8a 100644 --- a/module_config/module_esp8266_default/sdkconfig.defaults +++ b/module_config/module_esp8266_default/sdkconfig.defaults @@ -115,3 +115,6 @@ CONFIG_LOG_DEFAULT_LEVEL_ERROR=y # HTTP Server CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y diff --git a/module_config/module_esp8266_default/sdkconfig_silence.defaults b/module_config/module_esp8266_default/sdkconfig_silence.defaults index f9137234..623136d9 100644 --- a/module_config/module_esp8266_default/sdkconfig_silence.defaults +++ b/module_config/module_esp8266_default/sdkconfig_silence.defaults @@ -116,3 +116,6 @@ CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=y # HTTP Server CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y diff --git a/module_config/module_esp8266_qcloud/sdkconfig.defaults b/module_config/module_esp8266_qcloud/sdkconfig.defaults index bdf2e0dd..cb3dbaae 100644 --- a/module_config/module_esp8266_qcloud/sdkconfig.defaults +++ b/module_config/module_esp8266_qcloud/sdkconfig.defaults @@ -124,3 +124,6 @@ CONFIG_LOG_DEFAULT_LEVEL_NONE=y # HTTP Server CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y diff --git a/module_config/module_esp8266_qcloud/sdkconfig_silence.defaults b/module_config/module_esp8266_qcloud/sdkconfig_silence.defaults index 11286bd9..5084f672 100644 --- a/module_config/module_esp8266_qcloud/sdkconfig_silence.defaults +++ b/module_config/module_esp8266_qcloud/sdkconfig_silence.defaults @@ -125,3 +125,6 @@ CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=y # HTTP Server CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 + +# ESP HTTPS OTA +CONFIG_OTA_ALLOW_HTTP=y