diff --git a/PubSubClient.h b/PubSubClient.h index adc4c41..e6a38c5 100644 --- a/PubSubClient.h +++ b/PubSubClient.h @@ -21,13 +21,19 @@ #define MQTT_VERSION MQTT_VERSION_3_1_1 // MQTT_MAX_PACKET_SIZE : Maximum packet size +#ifndef MQTT_MAX_PACKET_SIZE #define MQTT_MAX_PACKET_SIZE 1024 +#endif // MQTT_KEEPALIVE : keepAlive interval in Seconds +#ifndef MQTT_KEEPALIVE #define MQTT_KEEPALIVE 15 +#endif // MQTT_SOCKET_TIMEOUT: socket timeout interval in Seconds +#ifndef MQTT_SOCKET_TIMEOUT #define MQTT_SOCKET_TIMEOUT 15 +#endif // MQTT_MAX_TRANSFER_SIZE : limit how much data is passed to the network client // in each write call. Needed for the Arduino Wifi Shield. Leave undefined to