Zolertia / contiki

Zolertia's Contiki repository
http://www.contiki-os.org/
Other
2 stars 4 forks source link

Z1: make neighbor number and routes overridable #18

Closed alignan closed 8 years ago

alignan commented 8 years ago

Change NBR_TABLE_CONF_MAX_NEIGHBORS and UIP_CONF_MAX_ROUTES to allow being override as follow.

/* Handle 15 neighbors */
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
#define NBR_TABLE_CONF_MAX_NEIGHBORS    15
#endif

/* Handle 15 routes    */
#ifndef UIP_CONF_MAX_ROUTES
#define UIP_CONF_MAX_ROUTES             15
#endif

The rationale behind this is to save RAM, as currently applications like the mqtt-demo are easily overflown.

alignan commented 8 years ago

https://github.com/contiki-os/contiki/pull/1745