-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESPAsyncWebServer #2341
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
Comments
Did you include |
Tried with 1.6.8 and 1.6.9 not other platform i will upload the sketch now... WebHandlers.cpp
WebHandlerImpl.h
|
Just to repeat, please describe your environment: which versions of the ESP8266 Arduino core and ESPAsyncWebServer are you using, how you are building the code (Arduino IDE or other build system), and the minimal sketch to reproduce the issue. Thank you. |
sketch https://github.com/kiralikbeyin/convert-to-async Tried with 1.6.8 and 1.6.9 no other platform |
I reinstall esp8266 2.3 and no problem now. I am not sure if it makes trouble again. Thank you Ivan :) |
No problem! I'm Ivan by the way :) |
Nightmare again Arduino: 1.6.8 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)" Error compiling for board NodeMCU 1.0 (ESP-12E Module). @igrr updated https://github.com/kiralikbeyin/convert-to-async |
/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include replace in WebHandlerImpl.h #include <time.h> to #include <_time.h> I will give info when i get problem again... |
Do you have some other file called "Time.h" somewhere in your include paths? |
Orginal arduino lib https://github.com/PaulStoffregen/Time and esp8266 core time lib nothing more... But my duplicate time.h _time.h files solved it for now. Thanks for your attention. |
I've just faced error undefined reference to strftime. Arduino 1.6.10, ESP stable 2.3.0, on ESP-12. In path "AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include", I see file time.h, including function strftime. Please help me. Thank you. |
I have this problem also, on windows only, not linux. I solved it by deleting the "Time.h" from the Time library (https://github.com/PaulStoffregen/Time), and using TimeLib.h only in my code. |
I uploaded same sketch maybe 10 times now it is giving exception again...
Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandler::setLastModified(tm*)':
/Users/EvAkilli/Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp:67:64: error: 'strftime' was not declared in this scope
strftime (result,30,"%a, %d %b %Y %H:%M:%S %Z", last_modified);
^
Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandler::setLastModified(time_t)':
/Users/EvAkilli/Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp:72:60: error: 'gmtime' was not declared in this scope
return setLastModified((struct tm *)gmtime(&last_modified));
^
Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandler::setLastModified()':
/Users/EvAkilli/Documents/Arduino/libraries/ESPAsyncWebServer-master/src/WebHandlers.cpp:77:25: error: 'time' was not declared in this scope
if(time(&last_modified) == 0) //time is not yet set
@igrr Can it be a core problem with time lib?
more : me-no-dev/ESPAsyncWebServer#60
The text was updated successfully, but these errors were encountered: