This is the same thing, but it has a timeout. If one second (1000
milliseconds) goes by without receiving a character, the program will
branch to the label "noHello". The one second timeout is reset if
any character at all comes in over the serial line. It has nothing
to do with receiving the whole "hello".
Comments
>SERIN WAIT?
>
>Martin
Hi Martin,
If you mean, "does it process code _while_ it is waiting", the answer
is no. The Stamp can only do one thing at a time. Example:
serin dpin,baudmode,[noparse][[/noparse]wait ("hello")]
The stamp will sit there stuck in that one command until it receives
the "hello". But once it does, yes, then it will continue to process
code. More:
serin dpin,baudmode,1000,noHello,[noparse][[/noparse]wait ("hello")]
This is the same thing, but it has a timeout. If one second (1000
milliseconds) goes by without receiving a character, the program will
branch to the label "noHello". The one second timeout is reset if
any character at all comes in over the serial line. It has nothing
to do with receiving the whole "hello".
I hope that helps,
-- regards,
Tracy Allen
electronically monitored ecosystems
http://www.emesystems.com