From 345c34a7153c04aacf1e3ae1814ec43831e5aad1 Mon Sep 17 00:00:00 2001 From: Giampaolo Mancini Date: Wed, 14 Feb 2024 12:56:02 +0100 Subject: [PATCH] Increase MQTT buffer size on STM32H7 --- src/ArduinoIoTCloudTCP.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ArduinoIoTCloudTCP.h b/src/ArduinoIoTCloudTCP.h index e50f9a07..9c9c876b 100644 --- a/src/ArduinoIoTCloudTCP.h +++ b/src/ArduinoIoTCloudTCP.h @@ -106,7 +106,11 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass #endif private: +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA) + static const int MQTT_TRANSMIT_BUFFER_SIZE = 1024; +#else static const int MQTT_TRANSMIT_BUFFER_SIZE = 256; +#endif enum class State {