zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
401 stars 135 forks source link

curent lib is not compiled #29

Open planer-pro opened 5 years ago

planer-pro commented 5 years ago

i got strange error while compiling:

WiFiManager.h: 36:22: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\">{v}<\title>"</p> <p>how to fix it who know?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/EdgarBarranco"><img src="https://avatars.githubusercontent.com/u/1354534?v=4" />EdgarBarranco</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>I had the same problem. I edited the WiFiManager.h and WiFiManager.c files replacing HTTP_HEAD with HTTP_HEAD_ESP32. Be aware there is a HTTP_HEAD_END too, so be careful. It needs to be changed on like 6 places or so.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/davefiddes"><img src="https://avatars.githubusercontent.com/u/35607151?v=4" />davefiddes</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>There looks to be a good fix for this in PR #24. Would be good to get this merged.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>