Be an HTTP server task. Here we define a Task that will be run when the HTTP server starts. It is this task that executes the majority of the passive work of the server. It listens for incoming connections and processes them when they arrive. More...
Public Member Functions | |
HttpServerTask (std::string name) | |
![]() | |
Task (std::string taskName="Task", uint16_t stackSize=10000, uint8_t priority=5) | |
Create an instance of the task class. More... | |
void | setStackSize (uint16_t stackSize) |
Set the stack size of the task. More... | |
void | setPriority (uint8_t priority) |
Set the priority of the task. More... | |
void | setName (std::string name) |
Set the name of the task. More... | |
void | setCore (BaseType_t coreId) |
Set the core number the task has to be executed on. If the core number is not set, tskNO_AFFINITY will be used. More... | |
void | start (void *taskData=nullptr) |
Start an instance of the task. More... | |
void | stop () |
Stop the task. More... | |
Additional Inherited Members | |
![]() | |
static void | delay (int ms) |
Suspend the task for the specified milliseconds. More... | |
Be an HTTP server task. Here we define a Task that will be run when the HTTP server starts. It is this task that executes the majority of the passive work of the server. It listens for incoming connections and processes them when they arrive.