wait
Waits string.
wait <string1> [<string2> ...]
Remarks
Pauses until one of the character strings is received from the host, or until the timeout occurs. Maximum number of the strings is 10.
When the empty string is specified, this command will wait an character.
If the system variable "timeout" or "mtimeout" is greater than zero, the timeout occurs when <timeout>.<mtimeout> seconds have passed. If the timeout is less than or equal to zero, the timeout never occurs.
These commands return one of the following values in the system variable "result":
Value | Meaning |
---|---|
0 | Timeout. No string has received. |
1 | <string1> has received. |
2 | <string2> has received. |