Skip to content

Commit

Permalink
chore: change OTA and MQTT default stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Jun 21, 2024
1 parent 69a24ad commit 2c8cffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ESPAdmin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ namespace ESPAdmin
options.httpTimeoutMs = DEFAULT_INT(options.httpTimeoutMs, 8000);
options.logMaxMessageSize = DEFAULT_INT(options.logMaxMessageSize, 200);
options.mqttTaskPriority = DEFAULT_INT(options.mqttTaskPriority, 5);
options.mqttTaskStackSize = DEFAULT_INT(options.mqttTaskStackSize, 6896); // StackHighWaterMark = 4848 bytes
options.mqttTaskStackSize = DEFAULT_INT(options.mqttTaskStackSize, 9640); // Stack used 4820 bytes
options.mqttKeepAliveSec = DEFAULT_INT(options.mqttKeepAliveSec, 30);
options.mqttNetworkTimeoutMs = DEFAULT_INT(options.mqttNetworkTimeoutMs, 8000);
options.mqttReconnectTimeoutMs = DEFAULT_INT(options.mqttReconnectTimeoutMs, 10000);
options.otaTaskPriority = DEFAULT_INT(options.otaTaskPriority, 5);
options.otaTaskStackSize = DEFAULT_INT(options.otaTaskStackSize, 6896); // StackHighWaterMark = 3384 bytes
options.otaTaskStackSize = DEFAULT_INT(options.otaTaskStackSize, 6928); // Stack used 3464 bytes

Store::begin(options);

Expand Down

0 comments on commit 2c8cffa

Please sign in to comment.