2024-06-26 10:14 AM
Good evening everyone; I was going to ask about something the size of it. If anyone has any information, I'd be happy. STMCube ide is also the LWip library tool. For MQTT connection via Ethernet. After publishing and subscribing for a certain period of time (30-40 minutes), "Out of memory error." (-1) error occurs and publishing and subscribing operations stop. How can I do that.
2024-06-26 10:19 AM
You're going to need to give a lot more detail!
@ramazan_kavak wrote:"Out of memory error." (-1) error occurs
Where, exactly, does it occur?
@ramazan_kavak wrote:After publishing and subscribing for a certain period of time (30-40 minutes)
Sounds like you have a memory leak - ie, you keep allocating memory, but never release it.
You need to review your code (maybe also the LwIP documentation, and documentation for your MQTT library) to see where memory is being allocated, and check that it always gets released (de-allocated).