Any TCP packet with more than 1024 bytes of payload was silently dropped. With MTU of 1500 the TCP payload can be up to 1460 bytes (1500 - 20(IP hdr) - 20(TCP hdr))
@@ -17,7 +17,7 @@
#include "user_interface.h"
-#define MQTT_BUF_SIZE 1024
+#define MQTT_BUF_SIZE 1460
#define MQTT_DEFAULT_KEEPALIVE 60
#define MQTT_MAX_CLIENT_LEN 64
#define MQTT_MAX_USER_LEN 64