Page 1 of 1

Question on MQTT

Posted: Tue Oct 19, 2021 2:15 pm
by ebolisa
Hi,

I subscribe to a less than 10 digit text to control relays. I noticed that if the incoming message contains a large string, > 50 characters, the code crashes. This doesn't happen using the same code on a Linux box. A work around is to limit the incoming string.

The library used is upmqttsimple on a ESP32.

Could this be a memory-run-out case?
TIA

Re: Question on MQTT

Posted: Tue Oct 19, 2021 4:41 pm
by pythoncoder
It sounds unlikely unless the size is huge. When you say it crashes, does it produce any text which might help in diagnosing the problem?