Question on MQTT

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
ebolisa
Posts: 55
Joined: Thu Feb 21, 2019 11:43 am
Location: Madrid, Spain

Question on MQTT

Post by ebolisa » Tue Oct 19, 2021 2:15 pm

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

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Question on MQTT

Post by pythoncoder » Tue Oct 19, 2021 4:41 pm

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?
Peter Hinch
Index to my micropython libraries.

Post Reply