Closed platcham closed 3 years ago
@platcham okay, I will check.
@platcham sorry, my readme is wrong. please update to this.
MQTT client(server, 1883, MQTT_DEFAULT_KEEPALIVE, callback, 512); to MQTT client(server, 1883, 512, callback);
That worked, thank you for the help!
Hello,
I cannot seem to get the message size increase, even when I specify a larger maximum size in the constructor.
Here is what I have at the beginning of my code:
And here is the function I am using to send an MQTT config:
However, the message my broker receives is this:
When it should be this:
As you can see, it is cutting the message off short, even though the 512 buffer should be plenty enough to transmit that message.
I've also attached the full version of my code, but other messages that are shorter send just fine, so I'm not sure what is happening. weatherStationMQTT.txt
Thank you for your time.