My development environment comprises of ESP32 DevKitC and Amazon FreeRTOS.
For Thread creation, I'm using the Iot_CreateDetachedThread function offered by the AWS IoT Device SDK C, which has the below syntax.
- bool Iot_CreateDetachedThread( IotThreadRoutine_t threadRoutine,
- void * pArgument,
- int32_t priority,
- size_t stackSize )
Questions relating to the Thread created are:
1) How to get the Thread Handle of this Thread for using with FreeRTOS APIs?
2) How to Suspend and Resume this Thread, similar to the FreeRTOS APIs vTaskSuspend() and vTaskResume()?
Reference Links:
1) AWS IoT Device SDK C - https://docs.aws.amazon.com/freertos/la ... index.html
2) Iot_CreateDetachedThread - https://docs.aws.amazon.com/freertos/la ... hread.html
Thanks | Regards,
Dipen