Skip to content

Commit 58193dc

Browse files
committed
Increase webSocket stack size
Working well on three test phones (2 android, 1 iphone).
1 parent 3dec51c commit 58193dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static int last_ws_fd;
6363

6464
static TaskHandle_t updateWebServerTaskHandle;
6565
static const uint8_t updateWebServerTaskPriority = 0; // 3 being the highest, and 0 being the lowest
66-
static const int webServerTaskStackSize = 4096; // Needs to be large enough to hold the file manager file list
67-
static const int webSocketStackSize = 8192;
66+
static const int webServerTaskStackSize = 1024 * 4;
67+
static const int webSocketStackSize = 1024 * 20; // Needs to be large enough to hold the file manager file list
6868

6969
// Inspired by:
7070
// https://github.com/espressif/arduino-esp32/blob/master/libraries/WebServer/examples/MultiHomedServers/MultiHomedServers.ino

0 commit comments

Comments
 (0)