Get current task handle static TaskHandle_t s_task_handle; s_task_handle = xTaskGetCurrentTaskHandle();