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
Question on MQTT
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Question on MQTT
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.
Index to my micropython libraries.