A task that will watch web socket inputs. More...
Public Member Functions | |
void | end () |
![]() | |
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... | |
A task that will watch web socket inputs.
When a WebSocket is created it is created by the client requesting an HTTP protocol changed to WebSockets. After the original Socket has been flagged as being a WebSocket, we must now start watching that socket for incoming asynchronous events. We spawn a task to do this. This is the implementation of that task.