You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking Removed timeout from join and get connection functions; replaced with a number of join/check attempts and the initial backoff.
This changes the inputs for the joinOTAA(...), joinABP(...), and isNetworkConnected() functions - although if you were previously accepting defaults for not required arguments, you do not need to change your code.
After the initial backoff, further backoff delays will be calculated using exponential calculation with jitter.
The default number of attempts is 10, the default initial backoff is 5s, and the default backoff factor is 1.5. If all attempts are used, the total delay will be (approximately) 9.5 minutes. The real delay will vary because of a random jitter of up to 20% added to or subtracted from each delay.
The default backoff parameters can be changed with the following defines:
DEFAULT_JOIN_ATTEMPTS
DEFAULT_INITIAL_BACKOFF
DEFAULT_BACKOFF_FACTOR
The number of join attempts and the initial backoff can also be changed in all functions that use it, but the backoff factor can only be changed with the define.
Added
Added a function to calculate backoff using exponential calculation with jitter.