Page 1 of 1

/main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Posted: Thu Jan 14, 2021 6:33 pm
by eliott
Hello,

I'm trying to switch from and http server to https server.

I'm unable to compile in my program, but its the same in the example dir: \esp-idf\examples\protocols\https_server

Also If I want to check if my esp-idf is up to date I found this command "git pull origin master". I want to be sure that is the good command to executre in the "esp-idf" dir. This part is not specified in the documentation, does the new execution of "esp-idf-tools-setup-2.3" update the sdk ?

Thank you for help.

Eliott.

Re: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Posted: Mon Jan 25, 2021 7:58 pm
by eliott
Solved: HTTPS component was not activated in sdkconfig (use idf.py menuconfig to set this option...)

Re: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Posted: Tue Apr 27, 2021 10:17 am
by kraxor
Also don't forget you need to require it in CMakeLists.txt:

Code: Select all

idf_component_register(
        SRCS
...
        REQUIRES
        "esp_https_server"
)