sending from node 2 to node 1
This commit is contained in:
parent
cbb68a71f6
commit
01fba84c16
1 changed files with 7 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-rucb.c,v 1.1 2008/01/25 18:00:51 adamdunkels Exp $
|
||||
* $Id: example-rucb.c,v 1.2 2008/04/24 11:41:50 fros4943 Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -120,12 +120,14 @@ PROCESS_THREAD(example_rucb_process, ev, data)
|
|||
|
||||
PROCESS_PAUSE();
|
||||
|
||||
if(rimeaddr_node_addr.u8[0] == 51 &&
|
||||
rimeaddr_node_addr.u8[1] == 0) {
|
||||
/* if(rimeaddr_node_addr.u8[0] == 51 &&
|
||||
rimeaddr_node_addr.u8[1] == 0) { */
|
||||
if(rimeaddr_node_addr.u16[0] == 2) {
|
||||
rimeaddr_t recv;
|
||||
|
||||
recv.u8[0] = 52;
|
||||
recv.u8[1] = 0;
|
||||
recv.u16[0] = 1;
|
||||
/*recv.u8[0] = 52;
|
||||
recv.u8[1] = 0;*/
|
||||
start_time = clock_time();
|
||||
rucb_send(&rucb, &recv);
|
||||
#if NETSIM
|
||||
|
|
Loading…
Reference in a new issue