added two example scripts
This commit is contained in:
parent
62c8535678
commit
54ac5bc64e
3 changed files with 44 additions and 2 deletions
13
tools/cooja/config/scripts/log_all.js
Normal file
13
tools/cooja/config/scripts/log_all.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* 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(60000);
|
||||
|
||||
while (true) {
|
||||
log.log(time + ":" + id + ":" + msg + "\n");
|
||||
YIELD();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue