Hi Jim,
Thank for your advise.
So, how do I implement the waitSec function ?
Any problem with my code or any improvement
that you can advise me on this issue.
Thank you
>Virusim,
>
>SLEEP() is doing exactly what it is supposed to do :
>
>"suspends the execution of the current thread for at least the specified interval"
>
>Since your OnComm() codes runs in the current thread, it doesn't :-) However, if you test the comm input after the Sleep expires, I expect you'll find your data is there.
Best Regards
Virusim