Hi all, I am trying to save packet size of data I’m sending to an mqtt server. I have used zlib before on other devices with python, but I havent used it an Xbee using pycharm and micropython.
Is there a different library I need to import for this if it is even possible to use it?
I would suggest looking in the MicroPython Programming guide at Digi MicroPython Programming Guide
Compression is not mentioned in any part of what you sent me. mqtt.simple library does not include that. I am not sure what the purpose of your response was.
That was for the mqtt. This is what I found for zlib. uzlib – zlib decompression — MicroPython 1.14 documentation
Not sure if it will work or not.