two simple example scripts

This commit is contained in:
fros4943 2009-06-09 09:47:50 +00:00
parent 02733e15ab
commit 24897fb71f
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/*
* 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();