How to get miniz working.

mohammedahmed248
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
fasani
Posts: 78
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

Re: How to get miniz working.

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

There is an example on the IDF :

https://github.com/espressif/esp-idf/bl ... 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:

https://github.com/martinberlin/brotli
Backend developer-PHP Engineer
https://CALE.es ESP32 E-Ink Screen manager - Berlin, Germany

Who is online

Users browsing this forum: No registered users and 44 guests