osd-contiki/tools/cooja/contiki_tests/sky_helloworld.js
2008-09-18 10:27:57 +00:00

7 lines
285 B
JavaScript

/* Script is called once for every node log output. */
/* Input variables: Mote mote, int id, String msg. */
if (msg.startsWith('Hello, world')) {
log.log('TEST OK\n'); /* Report test success */
mote.getSimulation().getGUI().doQuit(false); /* Quit simulator (to end test run)*/
}