Search found 4 matches
- Fri Jan 10, 2025 11:08 pm
- Forum: ESP32 Arduino
- Topic: vTaskDelete(NULL) sometimes not working
- Replies: 5
- Views: 1667
Re: vTaskDelete(NULL) sometimes not working
But do you really need to end and restart the task? Can you send the new configuration to the running task and let it keep running? The task actually runs an MQTT client, which can be turned on or off via the WebServer, which also provides settings like server, topic, etc. I thought it was simpler ...
- Fri Jan 10, 2025 10:18 am
- Forum: ESP32 Arduino
- Topic: vTaskDelete(NULL) sometimes not working
- Replies: 5
- Views: 1667
Re: vTaskDelete(NULL) sometimes not working
Thanks the the reply, that would indeed work. I figured I should probably understand what's wrong before resorting to just using another variable. and when you call vTaskDelete that structure is free()ed Why is the eDeleted state even a thing then, if you can't read the state of a deleted task anymo...
- Thu Jan 09, 2025 8:57 am
- Forum: ESP32 Arduino
- Topic: vTaskDelete(NULL) sometimes not working
- Replies: 5
- Views: 1667
vTaskDelete(NULL) sometimes not working
I have a use case where I have a constantly running task, which I occasionally need to stop and restart with a different configuration. To do this I check a flag in the task loop to let it terminate gracefully when requested, and then restart it from the main task as soon as it is in the eDeleted st...
- Mon Dec 23, 2024 11:01 am
- Forum: ESP-IDF
- Topic: httpd performance
- Replies: 2
- Views: 813
httpd performance
I'm trying to make a web server. After experimenting with Arduino core and the WebServer library I realised that ESP-IDF's httpd would be better because it has useful features like websockets and connection keep-alive. However I noticed that httpd takes longer to respond to requests, which surprised...