Wait
Purpose: wait a fixed time before carrying on.

JSON
json
{ "wait": { "ms": 500 } }| Field | Meaning |
|---|---|
ms | Milliseconds to wait, 0 or more |
Result
Wait is always PASS. Clicking Stop during a wait stops at once.
Example
A Log before and after the wait prints ${now}, about 500 ms apart (505 ms when measured).

Notes
- To wait until a device is ready, Wait Until is more reliable than a fixed delay, and does not wait longer than needed.
Download the sample script
Sample script
Before running it, start a Slave window on 127.0.0.1:502 and click Listen, then open the script with Open JSON in Script mode and click Run. See How to use the examples.
