Has the wait funcdtion been removed and if so, what do I do to replace it?
Thank you
Hello, if I understand correctly, the replacement for wait() is sleep_for(x) where x is in microseconds. Is that correct?
Thanks
Yes. ThisThread::sleep_for(7ms)
would be the replacement for wait(7)
in Mbed 5.
Hello,
just for clarification. Yes, but:
wait(x);
where x are secondsThisThread::sleep_for(x);
where x is chrono time and unit has to be specified - 7ms or 7s and so onthread_sleep_for(x)
where x are microseconds. This one is more universal.BR, Jan
Thanks Jamie and Jan