Skip to content

Add progress callback to Update::writeStream(). #948

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

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Add progress callback to Update::writeStream(). #948

merged 1 commit into from
Jan 17, 2018

Conversation

everslick
Copy link
Contributor

This is a more or less verbatim port from the ArduinoOTA library to the UpdateClass. Usage example:

  Update.onProgress(
    [](size_t current, size_t total) {
      Serial.printf("\r  received %d of %d bytes           ", current, total);
    }
  );

Very useful for possible inclusion in the HttpUpdate library.

@me-no-dev me-no-dev merged commit 2633fc3 into espressif:master Jan 17, 2018
@me-no-dev
Copy link
Member

nice!

@everslick everslick deleted the add_progress_cb_to_update_writestream branch January 20, 2018 09:30
Curclamas pushed a commit to Curclamas/arduino-esp32 that referenced this pull request Aug 21, 2018
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

Successfully merging this pull request may close these issues.

2 participants