From 6b206baa31b4abe83da8c5e5295f2a827d31c6f6 Mon Sep 17 00:00:00 2001 From: Pedro Casaubon Date: Sun, 24 Dec 2023 16:13:46 +0100 Subject: [PATCH] Fix long mqtt requests not sent --- src/xtouch/mqtt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xtouch/mqtt.h b/src/xtouch/mqtt.h index 7f9c07e..959510e 100644 --- a/src/xtouch/mqtt.h +++ b/src/xtouch/mqtt.h @@ -824,6 +824,7 @@ void xtouch_mqtt_setup() xtouch_wiFiClientSecure.setInsecure(); xtouch_pubSubClient.setServer(ip, 8883); + xtouch_pubSubClient.setBufferSize(1024); // 1KB for mqtt message output xtouch_pubSubClient.setStream(stream); xtouch_pubSubClient.setCallback(xtouch_pubSubClient_streamCallback); xtouch_pubSubClient.setSocketTimeout(XTOUCH_MQTT_SERVER_TIMEOUT);