Open jpmeijers opened 1 year ago
The documention at https://pubsubclient.knolleary.net/api#setBufferSize refers to MQTT_MAX_MESSAGE_SIZE and that the default size is 256 bytes. Later on the same page https://pubsubclient.knolleary.net/api#setBufferSize it refers to MQTT_MAX_PACKET_SIZE with default size 128 bytes.
MQTT_MAX_MESSAGE_SIZE
MQTT_MAX_PACKET_SIZE
Looking at the source code the currently used define is calle MQTT_MAX_PACKET_SIZE and has a default size of 256 bytes.
I guess MQTT_MAX_MESSAGE_SIZE is old used, and the doc not changed it.
The documention at https://pubsubclient.knolleary.net/api#setBufferSize refers to
MQTT_MAX_MESSAGE_SIZE
and that the default size is 256 bytes. Later on the same page https://pubsubclient.knolleary.net/api#setBufferSize it refers toMQTT_MAX_PACKET_SIZE
with default size 128 bytes.Looking at the source code the currently used define is calle
MQTT_MAX_PACKET_SIZE
and has a default size of 256 bytes.