Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Studio Bluetooth Forum Discussions

Anonymous
Not applicable

Is it possible to force the current thread to sleep for some amount of ms?

0 Likes
1 Solution
ShengY_96
Employee
50 likes received 25 likes received 10 likes received
Employee

Try this: wiced_rtos_delay_milliseconds(x_ms,ALLOW_THREAD_TO_SLEEP);

And we need to include the "wiced_rtos.h" file to use the RTOS function.

View solution in original post

1 Reply
ShengY_96
Employee
50 likes received 25 likes received 10 likes received
Employee

Try this: wiced_rtos_delay_milliseconds(x_ms,ALLOW_THREAD_TO_SLEEP);

And we need to include the "wiced_rtos.h" file to use the RTOS function.