Hello!
I’ve recently been working on this weather station project, but I’m having a really strange compilation error that I can’t seem to track down. The compiler is complaining:
Compiling .pio/build/dfrobot_firebeetle2_esp32e/src/config.cpp.o
In file included from src/config.cpp:19:
include/config.h:382:4: error: #error Invalid configuration. Exactly one HTTP mode must be selected.
#error Invalid configuration. Exactly one HTTP mode must be selected.
^~~~~
The associated block is:
#if !( defined(USE_HTTP)
^ defined(USE_HTTPS_NO_CERT_VERIF)
^ defined(USE_HTTPS_WITH_CERT_VERIF))
#error Invalid configuration. Exactly one HTTP mode must be selected.
#endif
However, I can’t find any cases where those are being defined. According to syntax highlighting, all of those macros are defined somewhere. In fact, I’ve gone so far as to #undef them in the config header file. I’ve grepped through all of the source for this project, the associated libraries and even the board and framework libraries. I cannot find those macros being defined or how to fix this problem.
Any pointers or suggestions would be greatly appreciated.
Thanks,
Craig