How to reset the mAttachCounter variable in MLE #9056
-
In the case I am working on now it can happen that a SED tries to join a network when no active router is present. In this case it will try to attach and on every new attempt it doubles the waiting time. The maximum time is about 20 minutes. I want to reset the MLE::mAttachCounter variable to restart the attach tries when a user presses a button on the SED to get it into the network faster. I wasn't able to find a possibility to reset mAttachCounter. Is there some other proposed solution to solve that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using otThreadSetEnabled() to disable then re-enable Thread should achieve what you want. |
Beta Was this translation helpful? Give feedback.
Using otThreadSetEnabled() to disable then re-enable Thread should achieve what you want.