esp32_https_server icon indicating copy to clipboard operation
esp32_https_server copied to clipboard

HTTPS_LOGLEVEL instructions

Open LaudixGit opened this issue 3 years ago • 0 comments

Describe Your Goal What is the best way to change the HTTPS_LOGLEVEL in Arduino IDE

What Does Your Project Look Like If I directly edit "~\Arduino\libraries\ESP32_HTTPS_Server\src\HTTPSServerConstants.hpp" I can supress the log messages. lines 11, 12, 13

#ifndef HTTPS_LOGLEVEL
  #define HTTPS_LOGLEVEL 2
#endif

But I am reluctant to modify library source code.

If I add my own define statement, it is ignored.

#define HTTPS_LOGLEVEL 1    //suppress alerts 
#include <HTTPSServer.hpp>
#include <SSLCert.hpp>

Which is very surprising since #ifndef is used in the library!

The README has a section for PlatformIO. I was hoping for guidance with the Ardunio IDE (I know, I need to switch to PlatformIO, but it is not practical mid-project)

ESP32 Module ESP32-ETH01

Software (please complete the following information if applicable)

  • IDE and Version: Arduino 1.8.15

Additional context I recognize this is not really a esp32_https_server question, but more of a IDE question. But this is the only time I've not seen my define variable fail to override the library one, so maybe you've seen this already?

LaudixGit avatar Feb 06 '22 18:02 LaudixGit