|
|
| | | |
| | | |
− | [[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. |
| | | |
− | '''neighbor_discovery_open(...);'''
| + | #if !COLLECT_ANNOUNCEMENTS |
| + | neighbor_discovery_open(...); |
| + | neighbor_discovery_start(&tc->neighbor_discovery_conn, tc->rtmetric); |
| + | #else /* !COLLECT_ANNOUNCEMENTS */ |
| + | announcement_register(&tc->announcement, channels,received_announcement); |
| + | #if ! COLLECT_CONF_WITH_LISTEN |
| + | if(tc->is_router) { |
| + | announcement_set_value(&tc->announcement, RTMETRIC_MAX); |
| + | } |
| + | #endif /* COLLECT_CONF_WITH_LISTEN */ |
| + | #endif /* !COLLECT_ANNOUNCEMENTS */ |
| | | |
Exception encountered, of type "Error"