Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
433 stars 115 forks source link

MAX transfer size is not found #75

Open sudheera8 opened 7 years ago

sudheera8 commented 7 years ago

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