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
destThe destination board.
timeoutThe timeout in seconds.