xTaskCreatePinnedToCore(
Task1code, /* Function to implement the task */
"Task1", /* Name of the task */
10000, /* Stack size in words */
NULL, /* Task input parameter */
0, /* Priority of the task */
&Task1, /* Task handle. */
0); /* Core where the task should run */
Please explain the line of code from the example
10000, / * Stack size in words * /
What does this parameter mean and how to set it correctly?
Hi.
That refers to the stack size we’ll reserve for that particular task.
If you want to lower the stack size to a minimum, you can read this discussion: https://github.com/espressif/arduino-esp32/issues/1884
Regards,
Sara