jn516x examples: print out network state periodically

This commit is contained in:
Simon Duquennoy 2015-12-02 10:26:06 +01:00
parent 3ff44f77b9
commit bef32c20fb
4 changed files with 69 additions and 3 deletions

View file

@ -93,6 +93,14 @@ PROCESS_THREAD(border_router_process, ev, data)
rpl_tools_init(&prefix);
/* Print out routing tables every minute */
etimer_set(&et, CLOCK_SECOND * 60);
while(1) {
print_network_status();
PROCESS_YIELD_UNTIL(etimer_expired(&et));
etimer_reset(&et);
}
PROCESS_END();
}
/*---------------------------------------------------------------------------*/