-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Thread]Add a GenericThreadDriver constructor to set 2 private timeout variab… #27016
[Thread]Add a GenericThreadDriver constructor to set 2 private timeout variab… #27016
Conversation
PR #27016: Size comparison from 1887986 to ad915bc Increases (14 builds for bl702, cyw30739, efr32, nrfconnect, psoc6, qpg)
Decreases (4 builds for bl602, bl702, psoc6)
Full report (37 builds for bl602, bl702, cc32xx, cyw30739, efr32, linux, mbed, nrfconnect, psoc6, qpg)
|
…le, Add setter for those same variables so user cand modify them at runtime if they need to.
ad915bc
to
07d4f8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, but watch out for conflicts with #26940 -- these approaches are mutually incompatible, and we should figure out which one we want.
PR #27016: Size comparison from 28e0423 to 07d4f8f Increases (31 builds for bl602, bl702, cyw30739, efr32, esp32, k32w, nrfconnect, qpg, telink)
Decreases (4 builds for bl602, bl702, psoc6)
Full report (58 builds for bl602, bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
I would suggest moving this to Another idea is to add GenericThreadDriver is actually in the middle of the stack when commissioning the Thread network. The top layer is the cluster, and the bottom layer is the We should notice that this PR does not actually allow the application to override these two values, since the driver is instanced at connectedhomeip/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp Lines 82 to 96 in 6916da1
It is possible that different platforms (and Thread implementations) uses different suggested values for these two values, they might be backed with slightly different We could then expose two other functions, to allow applications override these two value when (or after) initializing thread stack by calling |
@erjiaqing thank you for your input. I will rework this in a few days so it is applicable to your PR and be leveraged by other ThreadStackImpl |
…le, Add a setter for those same variables so users can modify them at runtime if they need to.
Devices could desire to increase their set timeouts in noisy environments for example.