pubsubclient
pubsubclient copied to clipboard
MAX transfer size is not found
Hi
I am trying execute the folloring code with arduino zero and I see the publish being failed.
if(client.publish(MQTT::Publish(topic,payload)
.set_qos(0)))
SerialUSB.println("publish ok");
else
SerialUSB.println("publish failed");
The size of my payload is about 5000 bytes. I understand that I need to change the MAX_TRANSFER_SIZE but I couldn't find it anywhere in the library. I am not really experienced with this and would really appreciate any help. This would help me get over a major issue in my project.
Thanks sudheera