|
|
| | | |
| | | |
− | [[void collect_open(struct collect_conn *c, uint16_t channels, uint8_t is_router, const struct collect_callbacks *callbacks);]]
| + | void collect_open(struct collect_conn *c, uint16_t channels, uint8_t is_router, |
| + | const struct collect_callbacks *callbacks); |
| | | |
| This function opens a unicast channel in each node with the channel being (channels+1) and initialize all the parameters needed for the channel. | | This function opens a unicast channel in each node with the channel being (channels+1) and initialize all the parameters needed for the channel. |
|
|
| This function also starts the neighbor discovery process along with other other initialization. | | This function also starts the neighbor discovery process along with other other initialization. |
| | | |
− | '''#if !COLLECT_ANNOUNCEMENTS
| + | #if !COLLECT_ANNOUNCEMENTS |
− | neighbor_discovery_open(&tc->neighbor_discovery_conn, channels, CLOCK_SECOND * 4, CLOCK_SECOND * 60, | + | neighbor_discovery_open(...); |
− | #ifdef COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME
| + | |
− | COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME,
| + | |
− | #else
| + | |
− | CLOCK_SECOND * 600UL,
| + | |
− | #endif
| + | |
− | &neighbor_discovery_callbacks);
| + | |
| neighbor_discovery_start(&tc->neighbor_discovery_conn, tc->rtmetric); | | neighbor_discovery_start(&tc->neighbor_discovery_conn, tc->rtmetric); |
| #else /* !COLLECT_ANNOUNCEMENTS */ | | #else /* !COLLECT_ANNOUNCEMENTS */ |
|
|
| } | | } |
| #endif /* COLLECT_CONF_WITH_LISTEN */ | | #endif /* COLLECT_CONF_WITH_LISTEN */ |
− | #endif /* !COLLECT_ANNOUNCEMENTS */''' | + | #endif /* !COLLECT_ANNOUNCEMENTS */ |
| | | |
Exception encountered, of type "Error"