I developed a firmware that has an embedded webserver. I use ESP32S3 MCU
For those who are curious about the product being mentioned: https://enervision.ind.br/produto/mqtt-view/
However, since my system is complex, and I have several tasks running at the same time.
To prevent the webserver from crashing, I had to increase the priority of the http task, as you can see below.
However, the webserver is a task that only serves for configuration purposes.
And it will only be done a few times by the user, it is not a task that is used all the time.
This task is not that important in the system.
I want to implement the following approach:
Have a global variable or something similar.
When loading the webserver for the first time… I change the priority of the task…
vTaskPrioritySet(TaskHandle_t xTask, UBaseType_t uxNewPriority);
After a specific period of inactivity I return to a lower priority.
I have not tested this possibility yet. (It seems to make sense to me).
But I would like to know the opinion of those of you who are more experienced.
What do you think?
