Page 1 of 1

DOCUP - pubsubclient README.md

Posted: 24 Aug 2019, 12:49
by dampa
I happened to trad the README.md and saw this line
The maximum message size, including header, is **128 bytes** by default. This is configurable via `MQTT_MAX_PACKET_SIZE` in `PubSubClient.h`.
but I looked at one of the messages I was sending it was 269 bytes long (??) so I went and looked into PubSubClient.h and it looks to me that the default is now 1024 bytes,
// MQTT_MAX_PACKET_SIZE : Maximum packet size
#ifndef MQTT_MAX_PACKET_SIZE
#define MQTT_MAX_PACKET_SIZE 1024 // need to fix this here, because this define cannot be overruled within the Arduino sketch...
#endif
Just thought you would want to update the README.md

Re: DOCUP - pubsubclient README.md

Posted: 24 Aug 2019, 13:05
by grovkillen
Bits vs Bytes

Re: DOCUP - pubsubclient README.md

Posted: 24 Aug 2019, 13:06
by grovkillen
Sorry see now...

Re: DOCUP - pubsubclient README.md

Posted: 24 Aug 2019, 23:41
by TD-er
grovkillen wrote: 24 Aug 2019, 13:05 Bits vs Bytes
Nope, the size of the MQTT buffer has been increased a while ago.
And last week I merged a commit which actually allows to use the bigger buffer with messages over 384 bytes (which was for a long time the max. size)