Can ESPAsyncWebServer Serve multiple requests
Posted: 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:
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?
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:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset=utf-8>
- <meta name=viewport content="width=device-width,initial-scale=1">
- <title>1X Verifier</title>
- <link href=/static/css/app.css rel=stylesheet></head>
- <body><div id=app></div>
- <script type=text/javascript src=/static/js/app.js></script>
- <!-- script type=text/javascript src=/static/js/manifest.js></script>
- <script type=text/javascript src=/static/js/vendor.js></script -->
- </body>
- </html>
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?