Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] increase mqtt message length for C++ Paho MQTTClient(paho.mqtt.embedded-c)

The template for the client has a parameter which specifies the length of the read/write buffer.  You will need to increase that parameter.  The parameter exists because the client library avoids dynamic memory allocation - for portability and predictable resource use.


On 25/01/2020 17:37, Yasir hussan wrote:
Hello guys,

I am using C++ Paho MQTTClient(, it works fine, but when i try to send message with length about 300 character,it fails to send and return with -1 error

please help me about this, How i can fix this

Thanks in advance,


paho-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top