968 B
968 B
tag, type, name, params, returns
tag | type | name | params | returns | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api | function | setBufferSize |
|
|
Sets the size, in bytes, of the internal send/receive buffer. This must be large enough to contain the full MQTT packet. When sending or receiving messages, the packet will contain the full topic string, the payload data and a small number of header bytes.
By default, it is set to 256
bytes - as defined by the MQTT_MAX_MESSAGE_SIZE
constant in PubSubClient.h
.
Note : setBufferSize
returns a boolean flag to indicate whether it was able
to reallocate the memory to change the buffer size. This means, unlike the other
setXYZ
functions that return a reference to the client, this function cannot be
chained with those functions.