Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rpl-dag.c #1122

Open
wants to merge 1 commit into
base: develop
from

Conversation

@vconsales
Copy link

vconsales commented Nov 7, 2019

I noticed that the function int rpl_has_joined(void) in rpl-classic returns 0 if it is called by the root of the dodag. Because of that issue the root dodag will never send a tsch beacon since the condition
TSCH_RPL_CHECK_DODAG_JOINED() inside the process tsch_send_eb_process always fails.
The fix is straightforward: if I am the root of rpl dag I am joined to the dag by definition.
I tried this code with with Zolertia zoul RE-Mote revision B.

I am the root of dodag so I am joined by definition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.