Skip to content

Progress of HTTP-Update #4183

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
Disane87 opened this issue Jan 17, 2018 · 2 comments
Closed

Progress of HTTP-Update #4183

Disane87 opened this issue Jan 17, 2018 · 2 comments

Comments

@Disane87
Copy link

Disane87 commented Jan 17, 2018

Referecing the example for the HTTP-Update: https://github.com/esp8266/Arduino/libraries/ESP8266httpUpdate/examples/httpUpdate/httpUpdate.ino

Is there any possibility to get the current status of the download and flash progress?
I want to show a progressbar with the current percentage.

Any chance to achive this?

@CarlosJimenez
Copy link

I tried this (present in the latest version of Update.cpp) and it works for me!!:

void progressFunc(unsigned int progress,unsigned int total) {
  Serial.printf("Progress: %u of %u\r", progress, total);
};
Update.onProgress(progressFunc);

@earlephilhower
Copy link
Collaborator

Closing as fixed via #6796

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

3 participants