How to set the stack depth parameter when creating a task In ESP-IDF you can create a task with the xTaskCreate() function: