New Rime module: tree, a converge cast / tree data collection protocol
This commit is contained in:
parent
cc60843e8b
commit
833d098096
5 changed files with 298 additions and 6 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mesh.c,v 1.1 2007/03/15 19:52:51 adamdunkels Exp $
|
||||
* $Id: mesh.c,v 1.2 2007/03/15 20:04:30 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -281,8 +281,8 @@ static const struct uc_callbacks rrep_callbacks = {rrep_packet_received};
|
|||
static const struct nf_callbacks rreq_callbacks = {rreq_packet_received, NULL};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
mesh_init(const struct mesh_callbacks *callbacks,
|
||||
void (* send_datapacket)(rimeaddr_t *next))
|
||||
mesh_setup(const struct mesh_callbacks *callbacks,
|
||||
void (* send_datapacket)(rimeaddr_t *next))
|
||||
{
|
||||
uc_setup(&mc.dataconn, CHANNEL_MESH_DATA, &data_callbacks);
|
||||
uc_setup(&mc.rrepconn, CHANNEL_MESH_RREP, &rrep_callbacks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue