knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

Update PubSubClient.h #1041

Open anushavenkatesh1 opened 5 months ago

anushavenkatesh1 commented 5 months ago

Increased the buffer size of MQTT_MAX_PACKET_SIZE from 256 to 500

hmueller01 commented 3 months ago

Why should we increase the default packet size? If you need a bigger buffer use a compiler define -D MQTT_MAX_PACKET_SIZE 500 or use PubSubClient::setBufferSize(500) within your code.