pubsubclient icon indicating copy to clipboard operation
pubsubclient copied to clipboard

MAX transfer size is not found

Open sudheera8 opened this issue 7 years ago • 0 comments

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

sudheera8 avatar Mar 07 '17 02:03 sudheera8