Hi there
I have an ESP32 that is using almost all available memory --- so much so that I cannot import umqttsimple without memory allocation errors (I do acknowledge that this is likely due to extreme inefficient use of memory by a NOOB)....
What I would like:
> Help with the implementation of the simplest possible micropython UDP send arrangement
> All I need to do is send out data presented in the form of strings to a specific IP address on a LAN
> The device, with near infinite memory could then listen for incoming data and log it.
I know there are many elegant solutions to this... but I would appreciate an example of simple import of the correct library, setup for UDP, and sending of strings.
Many thanks.
Send string by using sockets and UDP
Re: Send string by using sockets and UDP
First thing I recommend is to add `import gc; gc.threshold(4096)` at the top of your boot.py and then see whether it gives you tad more breathing room. If you already have that, then sorry...doceave wrote: ↑Sun May 31, 2020 8:40 pmHi there
I have an ESP32 that is using almost all available memory --- so much so that I cannot import umqttsimple without memory allocation errors (I do acknowledge that this is likely due to extreme inefficient use of memory by a NOOB)....
What I would like:
> Help with the implementation of the simplest possible micropython UDP send arrangement
> All I need to do is send out data presented in the form of strings to a specific IP address on a LAN
> The device, with near infinite memory could then listen for incoming data and log it.
I know there are many elegant solutions to this... but I would appreciate an example of simple import of the correct library, setup for UDP, and sending of strings.
Many thanks.