-
Notifications
You must be signed in to change notification settings - Fork 0
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
LittleFS #1
Comments
I'm looking into LittleFS on three fronts.
I'm looking at it and hopefully have a solution within a week or so. |
Thanks for your answer.
_ I replaced all the SPIFFS calls with LittelFS.
_ In "void DevFsUpload :: handleUploadPage ()" I substitute:
with
|
Since LittleSF also supports filenames> 8.3, in void DevFsUpload :: handleFileUpload () I also commented on these lines:
|
I hope to be useful. |
I've a working LittleFS copy (my PC) but had to do more research than I expected. (LittleFS has an undocumented API and I had to guess/trial-and-error my way to a solution.) Support for directories is implemented; a few surprises in directory implementation. I just need to sync with SPIFFS code so as to make the design similar. Plus need updated documentation for both SPIFFS and LittleFS so as to reflect the differences. Unfortunately I have to "clone/duplicate" code from SPIFFS to LittleFS as a selector/preprocessor solution isn't possible with Arduiino IDE. Hopefully will be done in the next few days. |
Perfect. |
Try DaveBrad/DevFsUploadESP , it has documentation and provides more capability in managing files and directories on the ESP32 & ESP8266. At present LittleFS on ESP32 is in flux or poorly supported. Sorry it took so long: had to do code optimization to reduce the PROGMEM and Variable stack storage usage. |
I'm trying it, it's excellent. |
Hi,
Download has been added and tested. Documentation updated.
Found a couple of issues along the way, also fixed those.
- ESP32 has core library delta for my code.
- View was using a static variable, vs the more generic code using a
function parameters (poor on my part). But did not affect functionality.
Ajax is a general term:
- I'm using it in its most simple form: sending a message (datagram) to
the ESP-server in a POST format.
Used ajax approach for 'upload dir:' so as to sync Browser-UI and
the ESP setting.
When the 'dir:' is input into and checks valid, it sends the info to
the ESP. If not, the last setting remains on the ESP, and the dir:
text remains the same for user to correct. The upload buttons remain
disabled if 'dir:' is invalid.
I'm going to look at using ajax for other actions. Want to lower the
storage foot-print of DevFsUploadESP.
If you are looking at ajax for you own use, google "XMLHttpRequest",
there's a ton of stuff on this in Javascript.
Thx
|
Can you update DevFsUpload to use with LittleFS?
The text was updated successfully, but these errors were encountered: