espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 154 forks source link

Example ota_mqtt and ota_http, error with sdkconfig (CA-227) #126

Open AlexRadek opened 2 years ago

AlexRadek commented 2 years ago

Hello everyone, hope you are all having a great day.

I believe there are some configurations that have been left out of the sdkconfig.defaults that make the above mentioned examples unbuildable. Below are the configurations necessary for the build process:

#
# esphttpd
#
CONFIG_ESPHTTPD_ENABLED=y
CONFIG_ESPHTTPD_STACK_SIZE=4096
# CONFIG_ESPHTTPD_PROC_AFFINITY is not set
CONFIG_ESPHTTPD_PROC_PRI=4
# CONFIG_ESPHTTPD_SHUTDOWN_SUPPORT is not set
# CONFIG_ESPHTTPD_CORS_SUPPORT is not set
# CONFIG_ESPHTTPD_USE_ESPFS is not set
# CONFIG_ESPHTTPD_SO_REUSEADDR is not set
CONFIG_ESPHTTPD_TCP_NODELAY=y
# CONFIG_ESPHTTPD_SSL_SUPPORT is not set
# CONFIG_ESPHTTPD_BACKLOG_SUPPORT is not set
CONFIG_ESPHTTPD_SANITIZE_URLS=y
# CONFIG_ESPHTTPD_SINGLE_REQUEST is not set
# CONFIG_ESPHTTPD_ALLOW_OTA_FACTORY_APP is not set
# end of esphttpd

To replicate the error simply delete your sdkconfig and try to rebuild the project. You will find that esp.h needs to know the variable CONFIG_ESPHTTPD_STACK_SIZE and CONFIG_ESPHTTPD_USE_ESPFS NEEDS to not be set.