-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NO ISSUE, just question FILE DOWNLOAD ? #39
Comments
Hi @MyRaspberry Yes, it can. However, it has little to do with the library in question, it's just HTML and Javascript coding. |
i just worry about the file size can grow over the memory of the chip, |
thanks, anyhow i started coding the file thing a ? better ? way, and then experiment with your lib thanks for your time |
This is a great idea. If you need, I have some working sketches that do similar things (not with csv, but basically it's the same behaviour) |
-1- that first part seems to work:
,rec,datetimes,A0,A1,A2, tomorrow i know how big it will be. -2- i can also now print the content using the server.streamFile inside my added function to the FSBrowser code : -3- BUT THAT IS NOT A DOWNLOAD ? HOW ?
sounds like you know how, but i have no idea what you refer to. -4- i am lost,
now i see that is ?DISCONTINUED? and having a ESP32-S3 N16R8 module i look into using FFAT also i miss to see anything ? regarding other tools or ? i have one of that boards with 2 USB C ports, |
thanks anyhow, |
Hi @MyRaspberry I'm happy you already solved it. https://github.com/cotestatnt/esp-fs-webserver/tree/master/examples/csvLogger |
yes, thanks, i love it, looks great and is very professional, i see you use littleFS and the /data/ dir in the arduino project,
i assume that i can not use it for my little FFAT exploring project? can you open that? my page snap |
Of course you can use it! If you prefer to use FFat, simply include the "FFat.h" file and replace LittleFS with FFat wherever you see it in the sketch. As for uploading the data folder, it is managed directly by the library using the included Once you have uploaded your sources, you can edit them directly using the included Regarding your working HTML code, you can simply put it on a specific page: if you don't want write from beginning, open dev tools of your browser, move to the "source" tab and copy the content. #####Edit:##### // Fetch the list of files and fill the filelist
function listFiles() {
var url = '/list?dir=' + dataFolder;
if (url.charAt(url.length - 1) === '/')
url = url.slice(0, -1); // Remove the last character
fetch(url) // Do the request
.then(response => response.json()) // Parse the response
.then(obj => { // DO something with response
fileList.innerHTML = '';
obj.forEach(function(entry, i) {
addEntry(entry.name);
});
// Load first file
loadCsv(dataFolder + obj[0].name);
});
} |
The print screen is from the twin library that uses the ESPAsyncWebServer library for the webserver instead of the one included in the core, but the result does not change (I develop them more or less in parallel) From some tests I've done it seems to be faster and more responsive. |
as expected nothing is easy....
try set laptop wifi to
try again to powerup via charger |
I'm sorry @MyRaspberry, but a pull request I've merged some times ago has introduced this bug due to a wrong reply when ESP is acting as captive portal ( Once an ESP32 has succesfull connected to a SSID it store the credentials, so I've never realized before about this bug. With last commit and releases I've fixed it. |
You are trying to use a FFat based sketch selecting a SPIFFS based partition scheme (the default one), Also, up until now you've always said you have an ESP32-S3, but the board you selected uses a "normal" ESP32 so I'm guessing this is a different board? A curiosity... but why are you so sticky to the FFat partition? If you left LittleFS, the sketch would work as it was without having to specify the partition scheme every time |
oh sorry, -2- my first impression was that i can not use that N16R8 as i am working and data-collecting to N16R8 -3- as described above, i did a separate test setup for your lib. ok, i changed to LITTLE FS
second try used 192.168.1.213 | 192.168.1.1 | 192.168.1.1 ok, thank you so much |
The FS upload plugin for IDE 1.8.x (which don't work with IDE 2.x) is no more necessary because you can upload your files through the esp-fs-webserver library's included web interface.
I don't think the subnet mask you used are a valid value. Usually I set as 255.255.255.0 If you edit manual IP or other parameters for no-DHCP configuration, you have to save configuration before start the new connection, otherwise on next restart it will not be used. |
|
after some looks i got to say: -a-this project needs a FAVICON.ICO -b-but just found YOUR /edit page !! very goodi miss info about the 'LittleFS' DRIVE in PSFLASH
-c-this project server ON /edit [POST] >> handleFileUpload() >> server.upload() all just hidden in your complex structure. -d-just setup other PC
lost all old content, pls verify looks like the new IDE also messes up about the data dir from example when save to own project -e-anyway
thanks and greeting to Rome from Chiang Mai |
I'll try to respond to your comments
|
now i try
?? WHAT NOW??
also try:
-1- pls help with the tools board settings for ESP32-S3 |
I'm sorry something must have gone wrong with the latest commits... I'll fix this bug and then I'll make a new release. |
ok, n.p. can wait,
no offense, but that guy is wow |
update: |
Hi @MyRaspberry, thanks for your review! If you want test also this release, please keep in mind that some small changes are needed on on pre-existing sketches. |
Hi @MyRaspberry Furthermore, in the csvLogger.ino, I have included an example of how it is possible to insert a custom favicon encoded in base64. The |
play with a ESP32-S3 N16R8
and setup FFAT 10MB partition.
and write dir and file (append 1 line / min )
/data/readings.csv
does THIS tool help me to DOWNLOAD that file via Browser?
the example FSBrowser i use, not even print that file (content)
my status : at GIT
THX for sharing your work
The text was updated successfully, but these errors were encountered: