Skip to content

ESP8266httpUpdate missing function for SPIFFS update #4761

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

Closed
beegee-tokyo opened this issue May 24, 2018 · 5 comments
Closed

ESP8266httpUpdate missing function for SPIFFS update #4761

beegee-tokyo opened this issue May 24, 2018 · 5 comments

Comments

@beegee-tokyo
Copy link

ESP8266httpUpdate class offers

t_httpUpdate_return update(const String& host, uint16_t port, const String& uri = "/",
                               const String& currentVersion = "");

which allows to send some information to a server script (example->Advanced updater)

For SPIFFS update there is no corresponding function.
Or did I miss something?

@caverna
Copy link
Contributor

caverna commented May 24, 2018

#3732

@beegee-tokyo
Copy link
Author

beegee-tokyo commented May 24, 2018

@caverna I am not talking about ESP8266HTTPUpdateServer but about ESP8266httpUpdate which is updating firmware and SPIFFS from an external server.

@caverna
Copy link
Contributor

caverna commented May 25, 2018

Yeah, I know, but look at this:

size_t spiffsSize = ((size_t) &_SPIFFS_end - (size_t) &_SPIFFS_start);
_setUpdaterError();
// obs: typeof(Update) == "ESP8266httpUpdate"
if (!Update.begin(spiffsSize, U_SPIFFS)){//start with max available size
    if (_serial_output) Update.printError(Serial);
}

That could lead you to something, don't you think?

@beegee-tokyo
Copy link
Author

@caverna maybe, thanks for the tip. But I already ended up to work with my own ESP to Server communication to verify if an update is required.

@beegee-tokyo
Copy link
Author

Closed because I am implementing my own ESP to Server communication to check if update is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants