Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5035

SDK • Re: Out-of-Memory Errors When Publishing MQTT Messages

$
0
0
In the file pico-sdk/lib/lwip/doc/mqtt_client.txt you'll find:
1. Initial steps, reserve memory and make connection to server:

You need to increase MEMP_NUM_SYS_TIMEOUT by one if you use MQTT!
Did you modify your particular lwipopts.h file to do this?

Code:

#define MEMP_NUM_SYS_TIMEOUT   (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 1) // +1 for MQTT

Statistics: Posted by Silverlock — Tue Apr 09, 2024 2:09 am



Viewing all articles
Browse latest Browse all 5035

Trending Articles