From 4a989fb8c6208b9c5122ca2ca612bb72c7a05b9e Mon Sep 17 00:00:00 2001 From: arendst Date: Wed, 1 Mar 2017 11:33:32 +0100 Subject: [PATCH] Updated minimum MQTT_MAX_PACKET_SIZE to 512 --- lib/PubSubClient/src/PubSubClient.h | 2 +- platformio.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PubSubClient/src/PubSubClient.h b/lib/PubSubClient/src/PubSubClient.h index 225fd5a98..e2f1b32b1 100644 --- a/lib/PubSubClient/src/PubSubClient.h +++ b/lib/PubSubClient/src/PubSubClient.h @@ -24,7 +24,7 @@ // MQTT_MAX_PACKET_SIZE : Maximum packet size #ifndef MQTT_MAX_PACKET_SIZE //#define MQTT_MAX_PACKET_SIZE 128 -#define MQTT_MAX_PACKET_SIZE 400 +#define MQTT_MAX_PACKET_SIZE 512 #endif // MQTT_KEEPALIVE : keepAlive interval in Seconds diff --git a/platformio.ini b/platformio.ini index e33913f18..c04f7e125 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,6 +17,6 @@ framework = arduino board = esp01_1m ; ESP8285 - Sonoff Touch and Sonoff 4CH ; board = esp8285 -build_flags = -Wl,-Tesp8266.flash.1m64.ld -DMQTT_MAX_PACKET_SIZE=400 +build_flags = -Wl,-Tesp8266.flash.1m64.ld -DMQTT_MAX_PACKET_SIZE=512 lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON