vortigont / esp32-flashz

zlib compressed OTA firmware update for ESP32. Implements on-the-fly OTA images decompression on upload/flashing
GNU General Public License v2.0
33 stars 4 forks source link

Similar implementation for ESP-IDF available? #5

Open wysi opened 1 year ago

wysi commented 1 year ago

I am looking for a library exactly like this, but designed for the ESP-IDF.

Any hints?

Or is it worth to port it back to the ESP-IDF?

vortigont commented 1 year ago

It depends on what functionality you need actually. This lib implements decompression in the Inflator class and it's code could be reused via IDF as-is. But for flash writing/updating it reuses Arduino's Updater class (which under the hood uses IDF functions :) ). So if you already have some C++ code/lib for IDF that could do uncompressed updates than hooking Inflator from here won't be a problem.