Remove debug printouts. Increase neighbor advertisement timers.
This commit is contained in:
parent
a42311dc7e
commit
5e772838eb
1 changed files with 7 additions and 7 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* This file is part of the uIP TCP/IP stack.
|
||||||
*
|
*
|
||||||
* $Id: ajax-cgi.c,v 1.1 2008/07/07 23:42:32 adamdunkels Exp $
|
* $Id: ajax-cgi.c,v 1.2 2008/11/06 08:24:20 adamdunkels Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -170,12 +170,12 @@ PT_THREAD(neighborscall(struct httpd_state *s, char *ptr))
|
||||||
{
|
{
|
||||||
PSOCK_BEGIN(&s->sout);
|
PSOCK_BEGIN(&s->sout);
|
||||||
|
|
||||||
printf("neighbor_num %d\n", neighbor_num());
|
/* printf("neighbor_num %d\n", neighbor_num());*/
|
||||||
|
|
||||||
for(s->u.count = 0; s->u.count < neighbor_num(); s->u.count++) {
|
for(s->u.count = 0; s->u.count < neighbor_num(); s->u.count++) {
|
||||||
printf("count %d\n", s->u.count);
|
/* printf("count %d\n", s->u.count);*/
|
||||||
if(neighbor_get(s->u.count) != NULL) {
|
if(neighbor_get(s->u.count) != NULL) {
|
||||||
printf("!= NULL\n");
|
/* printf("!= NULL\n");*/
|
||||||
PSOCK_GENERATOR_SEND(&s->sout, make_neighbor, s);
|
PSOCK_GENERATOR_SEND(&s->sout, make_neighbor, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ adv_received(struct neighbor_discovery_conn *c, rimeaddr_t *from,
|
||||||
{
|
{
|
||||||
struct neighbor *n;
|
struct neighbor *n;
|
||||||
|
|
||||||
printf("adv_received %d.%d\n", from->u8[0], from->u8[1]);
|
/* printf("adv_received %d.%d\n", from->u8[0], from->u8[1]);*/
|
||||||
|
|
||||||
n = neighbor_find(from);
|
n = neighbor_find(from);
|
||||||
|
|
||||||
|
@ -221,8 +221,8 @@ httpd_cgi_init(void)
|
||||||
httpd_cgi_add(&neighbors);
|
httpd_cgi_add(&neighbors);
|
||||||
|
|
||||||
neighbor_discovery_open(&conn, 31,
|
neighbor_discovery_open(&conn, 31,
|
||||||
CLOCK_SECOND * 2,
|
CLOCK_SECOND * 4,
|
||||||
CLOCK_SECOND * 10,
|
CLOCK_SECOND * 20,
|
||||||
CLOCK_SECOND * 60,
|
CLOCK_SECOND * 60,
|
||||||
&neighbor_discovery_callbacks);
|
&neighbor_discovery_callbacks);
|
||||||
neighbor_discovery_start(&conn, 0);
|
neighbor_discovery_start(&conn, 0);
|
||||||
|
|
Loading…
Reference in a new issue