Updated the Rime channel numbers so that all examples can be run in the same network without channel clashes
This commit is contained in:
parent
f97cbce055
commit
e14a30262c
11 changed files with 24 additions and 24 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: example-mesh.c,v 1.4 2009/03/12 21:58:21 adamdunkels Exp $
|
||||
* $Id: example-mesh.c,v 1.5 2009/10/18 17:52:08 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ timedout(struct mesh_conn *c)
|
|||
printf("packet timedout\n");
|
||||
}
|
||||
static void
|
||||
recv(struct mesh_conn *c, rimeaddr_t *from, uint8_t hops)
|
||||
recv(struct mesh_conn *c, const rimeaddr_t *from, uint8_t hops)
|
||||
{
|
||||
printf("Data received from %d.%d: %.*s (%d)\n",
|
||||
from->u8[0], from->u8[1],
|
||||
|
@ -81,7 +81,7 @@ PROCESS_THREAD(example_mesh_process, ev, data)
|
|||
PROCESS_EXITHANDLER(mesh_close(&mesh);)
|
||||
PROCESS_BEGIN();
|
||||
|
||||
mesh_open(&mesh, 128, &callbacks);
|
||||
mesh_open(&mesh, 132, &callbacks);
|
||||
|
||||
button_sensor.activate();
|
||||
|
||||
|
@ -101,8 +101,8 @@ PROCESS_THREAD(example_mesh_process, ev, data)
|
|||
*/
|
||||
|
||||
packetbuf_copyfrom("Hej", 3);
|
||||
addr.u8[0] = 161;
|
||||
addr.u8[1] = 161;
|
||||
addr.u8[0] = 1;
|
||||
addr.u8[1] = 0;
|
||||
mesh_send(&mesh, &addr);
|
||||
}
|
||||
PROCESS_END();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue