Micropython data compression

I have a Digi XBee Cellular LTE Cat 1 and use MicroPython on the device. The MicroPython code reads data from the serial port and transmits it to an MQTT topic. It works well, however, I have not found any compression library support (file or stream based).
My goal is to reduce the amount of data pushed through the cell network by first compressing the sensor data in Micropython and then publishing the compressed data string to an MQTT topic.

Is it possible to include a C compression library ( pfalcon/uzlib ) and use it inside of Micropython?

Thank you!
Tyler

1 Like

Tyler, were you able to import uzlib to your LTE micropython environment?

Hi all, did you get a resolution for this? I am in the same situation