Updated to new collect router API
This commit is contained in:
parent
a4f9e62295
commit
79ba20ddcc
2 changed files with 5 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: shell-rime.c,v 1.18 2010/03/19 13:24:26 adamdunkels Exp $
|
* $Id: shell-rime.c,v 1.19 2010/03/25 08:52:23 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -343,7 +343,8 @@ send_collect(void *dummy)
|
||||||
void
|
void
|
||||||
shell_rime_init(void)
|
shell_rime_init(void)
|
||||||
{
|
{
|
||||||
collect_open(&collect, SHELL_RIME_CHANNEL_COLLECT, &collect_callbacks);
|
collect_open(&collect, SHELL_RIME_CHANNEL_COLLECT,
|
||||||
|
COLLECT_ROUTER, &collect_callbacks);
|
||||||
|
|
||||||
shell_register_command(&collect_command);
|
shell_register_command(&collect_command);
|
||||||
shell_register_command(&mac_command);
|
shell_register_command(&mac_command);
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: example-collect.c,v 1.11 2010/03/19 13:26:27 adamdunkels Exp $
|
* $Id: example-collect.c,v 1.12 2010/03/25 08:52:23 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,7 +72,7 @@ PROCESS_THREAD(example_collect_process, ev, data)
|
||||||
|
|
||||||
SENSORS_ACTIVATE(button_sensor);
|
SENSORS_ACTIVATE(button_sensor);
|
||||||
|
|
||||||
collect_open(&tc, 130, &callbacks);
|
collect_open(&tc, 130, COLLECT_ROUTER, &callbacks);
|
||||||
|
|
||||||
if(rimeaddr_node_addr.u8[0] == 1 &&
|
if(rimeaddr_node_addr.u8[0] == 1 &&
|
||||||
rimeaddr_node_addr.u8[1] == 1) {
|
rimeaddr_node_addr.u8[1] == 1) {
|
||||||
|
|
Loading…
Reference in a new issue