From 582d3c3675440ce46949a1ad505260c07c9ba448 Mon Sep 17 00:00:00 2001 From: Elliot Dohm Date: Fri, 7 Jun 2019 16:29:15 -0400 Subject: [PATCH] Increase buffer size to 1024 bytes This increases the buffer size to 1024, as otherwise the payload will be truncated if it exceeds 128 bytes, which causing issues when a consumer attempts to parse messages, as it'll very likely be invalid json. --- src/WebSocketClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketClient.h b/src/WebSocketClient.h index 4b009e6..fee9f30 100644 --- a/src/WebSocketClient.h +++ b/src/WebSocketClient.h @@ -86,7 +86,7 @@ class WebSocketClient : public HttpClient private: bool iTxStarted; uint8_t iTxMessageType; - uint8_t iTxBuffer[128]; + uint8_t iTxBuffer[1024]; uint64_t iTxSize; uint8_t iRxOpCode;