- Notifications
You must be signed in to change notification settings - Fork87
-
Dear Developers, I did 2 tests with "Async_ConfigOnDoubleReset" example without any change in the example code except using once the new h-Implementation from src_h and in the second test using the old cpp/h implementation from src_cpp Test 1: Test 2: Using the src_h sources the examples compiles, builds and works after uploading to the device without any problems. Using the src_cpp sources the project compiles, links and can be uploaded, but the ESP hangs up after: "Starting configuration portal @ 192.168.4.1, SSID = ESP_3D8963, PWD = MyESP_3D8963" Since I would like to integrate the lib in another project, due to multiple linker warnings, I want to use the src_cpp. Whats the difference here? Thanks in advance! |
BetaWas this translation helpful?Give feedback.
All reactions
Sure. I will do tomorrow.
Replies: 6 comments 7 replies
-
Changing ESPAsync_WiFiManager.h accordingly to prevent multiple definition linker error solved the problem in the project and the manager is working. However this is not solving the problem described above which is just a simple replacement of the sources in the example. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Possibly my mistake in copying the files, the only difference between Can you try to modify this lineESPAsync_WiFiManager.cpp#L570 to from then retest / post the result. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thx. I discovered first this difference and tested it before asking here for help. However, unfortunately with the same result. Even after changing ESPAsync_WifiManager.cpp#L570 accordingly the error still exists. :-( |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I also just tested and confirmed the issue. I found out the culprit is the compiler is not working perfectly, as expected, for For example That's why I hate the Hopefully someday |
BetaWas this translation helpful?Give feedback.
All reactions
-
I see! Thx for your fast respnse!! Just a few changes in the .h and it can be used even in the "old style" cpp's without the linker warnings and everthing works fine. That's a simple workaraound. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Could you post the |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sure. I will do tomorrow. |
BetaWas this translation helpful?Give feedback.
All reactions
-
The workaround I used for my project is very simple. Problem description: Solution for my project: In the according implementation file "dummy.cpp" start with This is an obvious workaround for the "multiple definitions" problem and uses the "linear" .h action without the need of the src_cpp files. Anyway this doesn't solve the problem of the above mentioned "Async_ConfigOnDoubleReset" example. But I used this just for a neutral test. However if you want to use the example there is no need of using the src_cpp files by just using the src_h files without any problem. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
-
Good test, I think you can try this way, if OK, we certainly don't need the src_cpp anymore
from to
This will have the benefit of |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I'm testing |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sounds good. You're solutions for the example seems straight forward. Did not think about it any longer so late in the evening ;-). Thx for the great support and your libs! I like them and your work including the TimerInterrupt lib which is very helpful! |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
The newESPAsync_WiFiManager release v1.10.0 has just been published. Your contribution is noted inContributions and Thanks Check the edited and new example for how to avoid I'm looking forward to receiving more of your contributions Best Regards, Releases v1.10.0
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for the new release. It is working now in my project without any errors! |
BetaWas this translation helpful?Give feedback.