Updated minimum MQTT_MAX_PACKET_SIZE to 512

This commit is contained in:
arendst 2017-03-01 11:33:32 +01:00
parent fc3b7e22ab
commit 4a989fb8c6
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
// MQTT_MAX_PACKET_SIZE : Maximum packet size // MQTT_MAX_PACKET_SIZE : Maximum packet size
#ifndef MQTT_MAX_PACKET_SIZE #ifndef MQTT_MAX_PACKET_SIZE
//#define MQTT_MAX_PACKET_SIZE 128 //#define MQTT_MAX_PACKET_SIZE 128
#define MQTT_MAX_PACKET_SIZE 400 #define MQTT_MAX_PACKET_SIZE 512
#endif #endif
// MQTT_KEEPALIVE : keepAlive interval in Seconds // MQTT_KEEPALIVE : keepAlive interval in Seconds

View File

@ -17,6 +17,6 @@ framework = arduino
board = esp01_1m board = esp01_1m
; ESP8285 - Sonoff Touch and Sonoff 4CH ; ESP8285 - Sonoff Touch and Sonoff 4CH
; board = esp8285 ; 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 lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON