mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
12 lines
332 B
JavaScript
12 lines
332 B
JavaScript
/*
|
|
* Example Contiki test script (JavaScript).
|
|
* A Contiki test script acts on mote output, such as via printf()'s.
|
|
* The script may operate on the following variables:
|
|
* Mote mote, int id, String msg
|
|
*/
|
|
|
|
TIMEOUT(2000, log.log("last message: " + msg + "\n"));
|
|
|
|
WAIT_UNTIL(msg.equals('Hello, world'));
|
|
log.testOK();
|