-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Allow Filesystem update via ESP8266HTTPUpdateServer #3732
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
Conversation
This adds capability to update the SPIFFS image via the same mechansism as firmware in the ESP8266HTTPUpdateServer. It does not provide any dependency or linkage between firmware and spiffs image updating; they are each taken on their own, each followed by a reboot. (I wrote this before seeing the other PR for similar functionality; I like this a bit better, becaue it uses the available SPIFFS size, and does not hide magic numbers (U_SPIFFS) in the html...) (It also cleans up a stray \n from commit ace0622)
# Conflicts: # libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp
I'm using this feature for a while and it works great! |
I think it deserves a little more explanation here... |
@devyte , would you mind to look into this PR? |
Hi @igrr |
Just for curiosity, does this PR have no importance at all? |
@caverna it's important, I may include this in my own application. We're just prioritizing stability for 2.4.1 and likely 2.5.0 as well, which means complex enhancements like this one get pushed back a little. Please be patient, we'll get there. |
Ok, the library has changed a lot... |
It was |
Hi @d-a-v ! |
Symbols _Fs_end and _Fs_start aren't defined. |
They are declared in flash_hal.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good idea, thanks for updating it to the new core!
libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer-impl.h
Outdated
Show resolved
Hide resolved
@earlephilhower sorry, I typed your user wrong in comments... :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me, thanks.
@d-a-v please let me know if it's necessary to rename internal variables and/or html parameter name. |
@caverna Yes it seems @earlephilhower is right and names could be more generic |
This is a fix for #3234 from @sandeen
The original description is:
This adds capability to update the SPIFFS image via the same mechanism as firmware in the ESP8266HTTPUpdateServer.
It does not provide any dependency or linkage between firmware and spiffs image updating; they are each taken on their own, each followed by a reboot.
(I wrote this before seeing the other PR #2701 for similar functionality; I like this a bit better, because it uses the available SPIFFS size, and does not hide magic numbers (U_SPIFFS) in the html...)
(It also cleans up a stray \n from commit ace0622)
We'd really like to see this functionality in the library for the OpenEVSE wifi project
This is my first try at this, mostly cribbing from the ESP8266httpUpdate version of the updater - happy to fix up anything as needed.
Thanks,
-Eric