Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS_LOGLEVEL instructions #149

Open
LaudixGit opened this issue Feb 6, 2022 · 0 comments
Open

HTTPS_LOGLEVEL instructions #149

LaudixGit opened this issue Feb 6, 2022 · 0 comments

Comments

@LaudixGit
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant