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

Allow Zigbee Rejoin Timeout to be configured via Kconfig #18

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

kendallgoto
Copy link
Contributor

We have found it to be useful to adjust the value of ZB_DEV_REJOIN_TIMEOUT_MS depending on the device type / network coordinator to improve device resilience e.g. at long distances or during power failures. We believe it makes sense for this timeout to be configurable via Kconfig, rather than hidden away in zigbee_app_utils.c since device developers should be aware of situations where the end device may disconnect and fail to rejoin until manually interacted with, if this timeout is breached.

It was previously overridable with an #ifndef guard, but it is not clear how developers are expected to overwrite this definition without modifying the SDK or manually adding the build flag. Moving it to Kconfig seems to be much more straight forward for an option that is likely important to device developers.

Copy link
Collaborator

@edmont edmont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! Could you please rebase and squash commits?

subsys/Kconfig Outdated Show resolved Hide resolved
@kendallgoto kendallgoto force-pushed the kgoto/configurable-timeout branch from 47e28a2 to 05ec787 Compare January 14, 2025 22:22
@kendallgoto kendallgoto force-pushed the kgoto/configurable-timeout branch from 05ec787 to 7da7276 Compare January 14, 2025 22:32
@kendallgoto
Copy link
Contributor Author

sure @edmont ! ready now.

@edmont edmont merged commit 3eb85f4 into nrfconnect:main Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants