how to send big data to webserver? #21
-
I created webserver to view the data in table format. also on esp i use to store sensor datas in json format in littleFs file. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is a memory management issue on your side. You need to stream the data, not pre-load and send it once. |
Beta Was this translation helpful? Give feedback.
-
Below are some parts you may use as an idea to download the json filedirect from the LittleFS into a variable in javascript in your html and then process it in javascript. I have an html which I serve from a Wemos D1 mini pro and I use it to edit files up to 500.000 characters which are stored in LittleFS. The page has an input field : It has some scripting and I think you can use and modify this to get your data downloaded into javascript in your html // Short for document.getElementById function function getFile() { fetch(url) |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
This is a memory management issue on your side. You need to stream the data, not pre-load and send it once.
If it is a table, an idea would be to send a WS message for each line, or group of lines for example.