Changed the name of the rimeaddr module to linkaddr
This commit is contained in:
parent
765e9acded
commit
45265249fc
180 changed files with 930 additions and 930 deletions
|
@ -37,10 +37,10 @@ PROCESS(mesh_node_process, "Mesh node");
|
|||
AUTOSTART_PROCESSES(&mesh_node_process);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
mesh_recv(struct mesh_conn *c, const rimeaddr_t *from, uint8_t hops)
|
||||
mesh_recv(struct mesh_conn *c, const linkaddr_t *from, uint8_t hops)
|
||||
{
|
||||
printf("%d.%d: mesh message received '%s'\n",
|
||||
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
|
||||
linkaddr_node_addr.u8[0], linkaddr_node_addr.u8[1],
|
||||
(char *)packetbuf_dataptr());
|
||||
}
|
||||
const static struct mesh_callbacks mesh_callback = {mesh_recv, NULL, NULL};
|
||||
|
@ -57,7 +57,7 @@ PROCESS_THREAD(mesh_node_process, ev, data)
|
|||
etimer_set(&et, CLOCK_SECOND * 20);
|
||||
PROCESS_WAIT_UNTIL(etimer_expired(&et));
|
||||
if(node_id == 200) {
|
||||
rimeaddr_t receiver;
|
||||
linkaddr_t receiver;
|
||||
packetbuf_copyfrom("Hello, world", 13);
|
||||
|
||||
receiver.u8[0] = 1;
|
||||
|
|
|
@ -40,7 +40,7 @@ static void
|
|||
trickle_recv(struct trickle_conn *c)
|
||||
{
|
||||
printf("%d.%d: trickle message received '%s'\n",
|
||||
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
|
||||
linkaddr_node_addr.u8[0], linkaddr_node_addr.u8[1],
|
||||
(char *)packetbuf_dataptr());
|
||||
}
|
||||
const static struct trickle_callbacks trickle_callback = {trickle_recv};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue