This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
Replies: 1 comment
-
It was just the wrong order of these lines:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm aware about the multiple include issue, I read some questions like this but still I'm not sure how to address this use-case.
I'm using PlatformIO so I have:
setup()
andloop()
live)So far I tried:
main.cpp
provisioning.h
As expected I have no problem with the multiple include issue, but instead I'm not sure how to handle the configuration defines.
Let's talk for example about
#define USE_ESP_WIFIMANAGER_NTP false
.In my code is placed in main.cpp before
#include <ESPAsync_WiFiManager.h>
.But of course this define is not found inside provisioning.cpp.
Moving it inside:
leads to:
What is the correct handling of these defines when using a class approach?
Beta Was this translation helpful? Give feedback.
All reactions