I can't find xTaskGetHandle in ESP-IDF.
Is there any other API to implement the same function?
thx.
How to get the task handle by name?
Re: How to get the task handle by name?
https://www.freertos.org/a00021.html#xTaskGetHandle
https://www.freertos.org/uxTaskGetSystemState.html
It seems it is not enabled in esp-idf, but if you really need something like that then you can adapt this code:NOTE: This function takes a relatively long time to complete and should only be called once for each task. Once the handle of a task has been obtained it can be stored locally for re-use.
INCLUDE_xTaskGetHandle must be set to 1 in FreeRTOSConfig.h for xTaskGetHandle() to be available.
https://www.freertos.org/uxTaskGetSystemState.html
Re: How to get the task handle by name?
Got it, thanks a lot .chegewara wrote: ↑Wed Jun 02, 2021 10:34 amhttps://www.freertos.org/a00021.html#xTaskGetHandleIt seems it is not enabled in esp-idf, but if you really need something like that then you can adapt this code:NOTE: This function takes a relatively long time to complete and should only be called once for each task. Once the handle of a task has been obtained it can be stored locally for re-use.
INCLUDE_xTaskGetHandle must be set to 1 in FreeRTOSConfig.h for xTaskGetHandle() to be available.
https://www.freertos.org/uxTaskGetSystemState.html
Who is online
Users browsing this forum: No registered users and 92 guests