updated example with FreeRTOS