MQTT packet size limit?
Posted: Wed Nov 16, 2016 11:14 am
I was wondering if anyone has come up against any size limits regarding the packets sent over MQTT.
I am using the Adafruit MQTT library and using Arduino IDE to write and upload to my ESP12F. If I use the IO Adafruit service as a broker, I can successfully publish a char array of over 100 characters. With the same code but connecting to another broker (just changing the server, username, etc), anything over 82 characters fails to publish and crashes my ESP. I know this broker can accept much longer arrays (100s) from other clients (not ESPs), and I was wondering if anyone had any similar experiences? And if so... how did you get around it?
I am using the Adafruit MQTT library and using Arduino IDE to write and upload to my ESP12F. If I use the IO Adafruit service as a broker, I can successfully publish a char array of over 100 characters. With the same code but connecting to another broker (just changing the server, username, etc), anything over 82 characters fails to publish and crashes my ESP. I know this broker can accept much longer arrays (100s) from other clients (not ESPs), and I was wondering if anyone had any similar experiences? And if so... how did you get around it?