Closed Hydrostic closed 6 months ago
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE
does not affect the stack of the main task where you are running this stuff. You want CONFIG_MAIN_TASK_STACK_SIZE
Dont work either
I can't debug your program for you. It is not even the complete program, because the event handler is missing.
You have to read the ESP IDF documentation in terms of what parameters you need to configure to extend the various tasks stack sizes. It could be, that the websocket client is running its own task too, which might be running out of stack. Play a bit with the program by simplifying it until you figure out which stack blows up.
I'm using the examples from
examples/http_ws_client.rs
, withCONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
, but the firmware kept exiting due to stack overflow. I tried to increase the size of stack, but it does not work. here is the log:And the code: