Can ESPAsyncWebServer Serve multiple requests

catotonic
Posts: 36
Joined: Sun Jul 16, 2017 6:55 pm
Location: Houston, TX
Contact:

Can ESPAsyncWebServer Serve multiple requests

Postby catotonic » Thu Mar 21, 2019 10:55 pm

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?

lasselukkari
Posts: 2
Joined: Sat Mar 23, 2019 10:23 pm

Re: Can ESPAsyncWebServer Serve multiple requests

Postby lasselukkari » Sat Mar 23, 2019 10:33 pm

I have done something similar but using another web server library. Here is a tutorial.

Who is online

Users browsing this forum: No registered users and 47 guests