Page 1 of 1

How to check CONFIG_ESP_HTTPS_SERVER_ENABLE within library?

Posted: Tue Nov 28, 2023 11:22 pm
by hoeken
I'm working on a library that is a wrapper of the ESP-IDF HTTP Server library: https://github.com/hoeken/PsychicHTTP/

Currently it works on the platformio / arduino framework, but I'd like to add support for Arduino and ESP-IDF eventually as well.

The problem is, different frameworks have CONFIG_ESP_HTTPS_SERVER_ENABLE set differently. Not a big deal, I can use #ifdef to remove the various ssl parts. The problem is, I don't know what #define to check. #ifdef CONFIG_ESP_HTTPS_SERVER_ENABLE
doesn't seem to work.

Can some one please point me in the right direction?