Wait for the last spawned command on the destination to complete. A list of two values is returned: the exit status (-1 if the program timed out) and any output produced by the command.
remote_wait dest timeout
dest
The destination board.
timeout
The timeout in seconds.