-
Notifications
You must be signed in to change notification settings - Fork 13.3k
HTTP update server can handle flash and spiffs files (spiffs size lim… #2701
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
…ited by free space)
</form> | ||
</body></html>)"; | ||
const char* ESP8266HTTPUpdateServer::_failedResponse = R"(Update Failed!)"; | ||
const char* ESP8266HTTPUpdateServer::_successResponse = "<META http-equiv=\"refresh\" content=\"15;URL=\">Update Success! Rebooting..."; | ||
int _command; |
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.
Could you please make the int _command
a class member in ESP8266HTTPUpdateServer
?
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.
Hi @PA4WD, do you need help with that?
This PR will be a great improvement to this feature!
Any update on this? It would be fantastic to be able to upload and update SPIFFS via http update server. Thanks |
It does not work but I fixed it! action='?cmd=0' and _command = _server->arg("cmd").toInt(); should be before if(!Update.begin(maxSketchSpace, _command)){//start with max available size See more at: http://www.esp8266.com/viewtopic.php?f=32&t=14363#sthash.fK8iDcha.dpuf |
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.
Code should be:
action='?cmd=0'
action='?cmd=100'
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.
_command = _server->arg("cmd").toInt();
should be before
if(!Update.begin(maxSketchSpace, _command)){//start with max available size
updated my repro, |
Thanks, closed by #3732 |
HTTP update server can handle flash and spiffs files (spiffs size limited by free space)