Page 1 of 1

Can ESPAsyncWebServer Serve multiple requests

Posted: Thu Mar 21, 2019 10:55 pm
by catotonic
I have been trying for days to get ASyncWebServer to serve the files necessary for my VueJS application.
It will server the index.html and the app.css, each of which are under 2K but stops when serving the the app.js file which is 27K.
Here's my index.htm that is requesting the files:
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset=utf-8>
  5.   <meta name=viewport content="width=device-width,initial-scale=1">
  6.   <title>1X Verifier</title>
  7.  
  8. <link href=/static/css/app.css rel=stylesheet></head>
  9. <body><div id=app></div>
  10. <script type=text/javascript src=/static/js/app.js></script>
  11. <!-- script type=text/javascript src=/static/js/manifest.js></script>
  12. <script type=text/javascript src=/static/js/vendor.js></script -->
  13.  
  14. </body>
  15. </html>
I remmed out the other two files I will need in the future which are larger while I try and figure out how to do the first three.
I have given up on any help on how to write a respond->send function that will handle multiple large file and just been guessing and compiling.
My question is: should I keep tying to figure it out, is the AsyncWebServer capable of handling multiple large files? Can it run in a task, where it is now? If not I will have to go back to my old ESP32WebServer. Is there anyone out there that has done anything like this?

Re: Can ESPAsyncWebServer Serve multiple requests

Posted: Sat Mar 23, 2019 10:33 pm
by lasselukkari
I have done something similar but using another web server library. Here is a tutorial.