espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
288 stars 108 forks source link

Allow reporting progress #25

Closed balloob closed 2 years ago

balloob commented 2 years ago

This allows passing a callback into write_flash to report progress.

adwait-esp commented 2 years ago

I don't see the callback function definition anywhere, or is it just a provision for now?

balloob commented 2 years ago

It's an optional callback. For testing purposes I added one to index.js but I didn't commit that. Let me add a nice progress bar to the HTML.

adwait-esp commented 2 years ago

LGTM

balloob commented 2 years ago

Progress bar added to the website in #30