uzlib and lwip

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
KevinA
Posts: 12
Joined: Mon Nov 09, 2015 11:17 pm

uzlib and lwip

Post by KevinA » Wed Feb 26, 2020 3:48 am

While looking at a project evolving STM32 collecting data, compressing the data, sending the data using UDP I wanted to read up on the functions: uzlib only decompresses and there is no documentation on lwip for micropython.
I did find the source for uzlib and lwip, is there a reason not to add compression and the docs for lwip?
Thanks - looking at STM32L073RZ as the host and I don't think I'll need UDP on the host since it will use a LTE device with AT commands.

User avatar
jimmo
Posts: 1465
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: uzlib and lwip

Post by jimmo » Wed Feb 26, 2020 3:59 am

KevinA wrote:
Wed Feb 26, 2020 3:48 am
uzlib only decompresses
See https://github.com/micropython/micropython/pull/5613 -- support for compression was proposed recently.
KevinA wrote:
Wed Feb 26, 2020 3:48 am
there is no documentation on lwip for micropython.
MicroPython doesn't have docs on LWIP because it provides a Python-compatible socket API instead -- see http://docs.micropython.org/en/latest/l ... ocket.html
KevinA wrote:
Wed Feb 26, 2020 3:48 am
Thanks - looking at STM32L073RZ as the host and I don't think I'll need UDP on the host since it will use a LTE device with AT commands.
You're going to have a tough time fitting MicroPython + LWIP into an L073. But does your LTE device implement the IP stack -- why do you need LWIP?

Post Reply