How to get miniz working.

Posts: 1
Joined: Wed May 29, 2019 4:14 pm

How to get miniz working.

Postby mohammedahmed248 » Wed May 29, 2019 9:13 pm

Hey guys, I am very new to the ESP32 environment, so bear with me. I am wanting to compress/decompress a file in the ESP32, and I saw that a library called miniz is included in the idf. But I am honestly completely clueless on how to use this library, as there isn't an example for it. If anyone can help guide me in the right direction , I would greatly appreciate it. Thank you for your time!

User avatar
Posts: 76
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin

Re: How to get miniz working.

Postby fasani » Wed Dec 11, 2019 9:13 am

There is an example on the IDF : ... st_miniz.c

Now keep in mind that #include "esp32/rom/miniz.h" includes only the low level deflate / inflate methods.
I'm sending compressed data (led matrix video) from an Android app and I found Brotli to be a very reliable decompressor for ESP32. Check google's library with my fork to update headers and tests for ESP32 here:
Backend developer-PHP Engineer ESP32 E-Ink Screen manager - Berlin, Germany

Who is online

Users browsing this forum: Baidu [Spider] and 43 guests