Comments on: ESP32 Async Web Server – Control Outputs with Arduino IDE (ESPAsyncWebServer library) https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 06 May 2025 01:31:22 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1034496 Tue, 06 May 2025 01:31:22 +0000 https://randomnerdtutorials.com/?p=96995#comment-1034496 Hola Sara, ya resolví el problema. No había visto un comentario anterior suyo, donde dejó el enlace de las bibliotecas (https://rntlab.com/question/solvedassert-failed-tcp_alloc-idf-components-lwip-lwip-src-core-tcp-c1851-required-to-lock-tcpip-core-functionality/).

Lo que hice fue desinstalar las bibliotecas anteriores, borré las carpetas donde las contenía (como indicó Usted), instalé las bibliotecas (En su IDE de Arduino, vaya a Sketch > Incluir biblioteca > Agregar biblioteca .zip y seleccione las bibliotecas que acaba de descargar). Actualicé la versión de la placa EPS32 a la versión 3.0.7 (de Espressif) y compiló sin errores después de varios días de sufrir por una solución.

Mil y mil gracias por su ayuda.

Saludos,

Miller CM

]]>
By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1034456 Tue, 06 May 2025 00:29:05 +0000 https://randomnerdtutorials.com/?p=96995#comment-1034456 Hola Sara, muchas gracias por compartir su conocimiento. ¿Usted sería atan amable de indicarme cuál es la versión de cada una de las librerías ESPAsyncWebServer y AsyncTCP que funcionan con su proyecto? No he logrado que me funcione de ninguna manera, siempre me sale el error: ‘mbedtls_md5_update_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_update’? 75 | mbedtls_md5_update_ret(&_ctx, data, len);
No sé qué más hacer para que me vuelvan a funcionar los proyectos con ESP32.

Gracias de nuevo.

Miller CM

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1030062 Wed, 23 Apr 2025 13:24:59 +0000 https://randomnerdtutorials.com/?p=96995#comment-1030062 In reply to Bernhard.

Hi.
To prevent issues, I recommend removing all folder related to previous libraries before installing the new ones.
Regards,
Sara

]]>
By: Bernhard https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1030011 Wed, 23 Apr 2025 09:06:12 +0000 https://randomnerdtutorials.com/?p=96995#comment-1030011 Hello, thanks a lot for your excellent tutorials. I always find good ideas and hints for my projects.
I’ve tried to include the latest version of AsyncTCP and Async Web Server to one of my project but got a bunch of errors compile when I’ve use the repos from ESP32Async. Even when I just copy your example above I get those strange compile errors.
Finally I succeded using AsyncTCP and WebServer from ESPHome. The only change was to change the send() to send_P()…
Hope this helps if someone has similar issues and to fix the problems on ESP32Async side…
Thanks again
Bernhard

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1003191 Mon, 27 Jan 2025 18:48:40 +0000 https://randomnerdtutorials.com/?p=96995#comment-1003191 In reply to JohnT.

Hi.
Please see the solution for this issue here: https://rntlab.com/question/solvedassert-failed-tcp_alloc-idf-components-lwip-lwip-src-core-tcp-c1851-required-to-lock-tcpip-core-functionality/
Regards,
Sara

]]>
By: an https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-1002753 Sat, 25 Jan 2025 16:51:59 +0000 https://randomnerdtutorials.com/?p=96995#comment-1002753 More about the above fault reported by John T above.
The bug persists in the ESP32 Boards V3.1.0 and 3.1.1 – stay with 3.0.7.
One problem is that if you allow automatic updates in the Arduino IDE updates, version 3.0.7. will get overwritten with the latest version, so if you try to recompile a previous working sketch, it will fail with the #1455 error – ask me why I wasted two days trying to fix this before I saw the light!

]]>
By: JohnT https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-993066 Fri, 20 Dec 2024 16:10:25 +0000 https://randomnerdtutorials.com/?p=96995#comment-993066 In reply to Sara Santos.

And it works great now !
Thank you

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-993059 Fri, 20 Dec 2024 15:57:49 +0000 https://randomnerdtutorials.com/?p=96995#comment-993059 In reply to JohnT.

Hi.
Please downgrade your ESP32 boards to version 3.0.7.
The newest version comes with that issue.
Go to Tools > Boards > Boards Manager > ESP32 and downgrade to version 3.0.7.
That will solve the issue.
Regards,
Sara

]]>
By: JohnT https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-993054 Fri, 20 Dec 2024 15:26:36 +0000 https://randomnerdtutorials.com/?p=96995#comment-993054 Hello
I have this error message : “assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)”
How could i resolve it ?
Thank you for your answer.
And thank you for the grat job.

]]>
By: Dean Cotton https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/#comment-951788 Tue, 27 Aug 2024 08:38:40 +0000 https://randomnerdtutorials.com/?p=96995#comment-951788 Hello Sara and Rui,

I have been running into a compiling error with the webserver library, it started when I attempted to update ElegantOTA (non pro), I have updated and reinstalled both ESPAsyncWebServer and AsyncTCP with no luck.
Output Error message:
ESPDashPro.cpp: In lambda function

ESPDashPro.cpp: 56:109: error: no matching function for call to ‘AsyncWebServerRequest::beginResponse(int, const char [10], const uint8_t [188958], unsigned int)
AsyncWebServerResponse *response = request->beginResponse(200, “text\html”, DASH_HTML, sizeof(DASH_HTML))

ESPDashPro.h:107: In file included from
ESPDashPro.cpp:1: from
ESPAsyncWebServer.h:246: note candidate AsyncWebServerResponse* AsyncWebServerRequest beginResponse(int, const String&, const String&)
AsyncWebServerResponse beginResponse(int code, const String& contentType=String(), const String& content=String())
^~~~~~~~~~~~~
ESPAsyncWebServer.h:246: note candidate expects 3 arguments, 4 provided
ESPAsyncWebServer.h:247: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest FS&, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(FS &fs, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:247: note no known conversion for argument 1 from int to AsyncWebServerRequest FS& {aka fs FS&}
ESPAsyncWebServer.h:248: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest File, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(File content, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:248: note no known conversion for argument 1 from int to AsyncWebServerRequest File {aka fs File}
ESPAsyncWebServer.h:249: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(Stream&, const String&, size_t, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(Stream &stream, const String& contentType, size_t len, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:249: note no known conversion for argument 1 from int to Stream&
ESPAsyncWebServer.h:250: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(const String&, size_t, AwsResponseFiller, AwsTemplateProcessor)
AsyncWebServerResponse *beginResponse(const String& contentType, size_t len, AwsResponseFiller callback, AwsTemplateProcessor templateCallback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:250: note no known conversion for argument 3 from const uint8_t [188958] {aka const unsigned char [188958]} to AwsResponseFiller {aka std function}
ESPDashPro.cpp: In lambda function

ESPDashPro.cpp: 68:112: error: no matching function for call to ‘AsyncWebServerRequest::beginResponse(int, const char [10], const uint8_t [7655], unsigned int)
AsyncWebServerResponse *response = request->beginResponse(200, DASH_LOGO_MIME, DASH_LOGO, sizeof(DASH_LOGO))

ESPDashPro.h:107: In file included from
ESPDashPro.cpp:1: from
ESPAsyncWebServer.h:246: note candidate AsyncWebServerResponse* AsyncWebServerRequest beginResponse(int, const String&, const String&)
AsyncWebServerResponse beginResponse(int code, const String& contentType=String(), const String& content=String())
^~~~~~~~~~~~~
ESPAsyncWebServer.h:246: note candidate expects 3 arguments, 4 provided
ESPAsyncWebServer.h:247: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest FS&, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(FS &fs, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:247: note no known conversion for argument 1 from int to AsyncWebServerRequest FS& {aka fs FS&}
ESPAsyncWebServer.h:248: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(AsyncWebServerRequest File, const String&, const String&, bool, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(File content, const String& path, const String& contentType=String(), bool download=false, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:248: note no known conversion for argument 1 from int to AsyncWebServerRequest File {aka fs File}
ESPAsyncWebServer.h:249: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(Stream&, const String&, size_t, AwsTemplateProcessor)
AsyncWebServerResponse beginResponse(Stream &stream, const String& contentType, size_t len, AwsTemplateProcessor callback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:249: note no known conversion for argument 1 from int to Stream&
ESPAsyncWebServer.h:250: note candidate AsyncWebServerResponse
AsyncWebServerRequest beginResponse(const String&, size_t, AwsResponseFiller, AwsTemplateProcessor)
AsyncWebServerResponse *beginResponse(const String& contentType, size_t len, AwsResponseFiller callback, AwsTemplateProcessor templateCallback=nullptr)
^~~~~~~~~~~~~
ESPAsyncWebServer.h:250: note no known conversion for argument 3 from const uint8_t [7655] {aka const unsigned char [7655]} to AwsResponseFiller {aka std function}
Error compiling libraries

I use the VisualMicro extension for Visual Studio as my coding environment.
and I use ESPDash in my project which also requires ESPAsyncwebserver.

]]>