Skip to content

Commit

Permalink
Fix long mqtt requests not sent
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiments committed Dec 24, 2023
1 parent 741e99f commit 6b206ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xtouch/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b206ba

Please sign in to comment.