printing message when packet sent
+ changed period to 2 seconds (can be run unchanged with x-mac)
This commit is contained in:
parent
205b9f8bc4
commit
27bc3f771a
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-abc.c,v 1.1 2008/01/25 18:00:50 adamdunkels Exp $
|
||||
* $Id: example-abc.c,v 1.2 2008/10/02 21:08:58 fros4943 Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -69,13 +69,13 @@ PROCESS_THREAD(example_abc_process, ev, data)
|
|||
while(1) {
|
||||
static struct etimer et;
|
||||
|
||||
etimer_set(&et, CLOCK_SECOND);
|
||||
etimer_set(&et, 2*CLOCK_SECOND);
|
||||
|
||||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
|
||||
rimebuf_copyfrom("Hello", 6);
|
||||
abc_send(&abc);
|
||||
|
||||
printf("abc message sent\n");
|
||||
}
|
||||
|
||||
PROCESS_END();
|
||||
|
|
Loading…
Reference in a new issue