mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 07:29:42 +00:00
14 lines
529 B
JavaScript
14 lines
529 B
JavaScript
/* Script is called once for every node log output. */
|
|
/* Input variables: Mote mote, int id, String msg. */
|
|
|
|
/* Contiki test script example */
|
|
if (msg.startsWith('Contiki')) {
|
|
log.log('TEST OK\n'); /* Report test success */
|
|
|
|
/* To increase test run speed, close the simulator when done */
|
|
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
|
} else {
|
|
log.log('TEST FAIL\n'); /* Report test failure */
|
|
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
|
|
}
|