5#include <freertos/FreeRTOS.h>
6#include <freertos/task.h>
Helper for FreeRTOS static task management.
bool create(TaskFunction_t fn, const char *name, uint32_t stack_size, void *param, UBaseType_t priority, bool use_psram)
Allocate stack and create task.
bool is_created() const
Check if the task has been created and not yet destroyed.
TaskHandle_t get_handle() const
Get the FreeRTOS task handle.
void deallocate()
Delete the task (if running) and free the stack buffer.
void destroy()
Delete the task but keep the stack buffer allocated for reuse by a subsequent create() call.
StackType_t * stack_buffer_
Providing packet encoding functions for exchanging data with a remote host.