Skip to content

Commit 345c34a

Browse files
committed
Increase MQTT buffer size on STM32H7
1 parent 60528b9 commit 345c34a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/ArduinoIoTCloudTCP.h

+4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
106106
#endif
107107

108108
private:
109+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
110+
static const int MQTT_TRANSMIT_BUFFER_SIZE = 1024;
111+
#else
109112
static const int MQTT_TRANSMIT_BUFFER_SIZE = 256;
113+
#endif
110114

111115
enum class State
112116
{

0 commit comments

Comments
 (0)