--- tag: docs type: other title: Configuration Options --- The following configuration options can be used to configure the library. They are contained in `PubSubClient.h`.
MQTT_MAX_PACKET_SIZE
This value can be overridden by calling setBufferSize(size)
.
Default: 128 bytes
MQTT_KEEPALIVE
This value can be overridden by calling setKeepAlive(keepAlive)
.
Default: 15 seconds
MQTT_VERSION
Default: MQTT 3.1.1
MQTT_MAX_TRANSFER_SIZE
Default: undefined (complete packet passed in each write call)
MQTT_SOCKET_TIMEOUT
connect
.
This value can be overridden by calling setSocketTimeout(timeout)
.
Default: 15 seconds