How to check CONFIG_ESP_HTTPS_SERVER_ENABLE within library?

hoeken
Posts: 3
Joined: Sat Nov 25, 2023 2:44 pm

How to check CONFIG_ESP_HTTPS_SERVER_ENABLE within library?

Postby hoeken » Tue Nov 28, 2023 11:22 pm

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?

Who is online

Users browsing this forum: Baidu [Spider] and 336 guests