-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Added implementations for the JF Administrator and Datastore Servers #38842
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
Conversation
Please check my other comments for specific asks. General comment is that this is good work and probably can be merged as a basis for future JF DS work. At this moment probably it implements 10% of the JF DS text. |
src/app/clusters/joint-fabric-datastore-server/joint-fabric-datastore-server.cpp
Outdated
Show resolved
Hide resolved
src/app/clusters/joint-fabric-datastore-server/joint-fabric-datastore-server.cpp
Outdated
Show resolved
Hide resolved
Please update per comments and resolve comments for approval. |
src/app/clusters/joint-fabric-administrator-server/joint-fabric-administrator-server.cpp
Outdated
Show resolved
Hide resolved
bce7641
to
5e86f37
Compare
PR #38842: Size comparison from f4d171a to 5e86f37 Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #38842: Size comparison from ebe16b7 to 1d047f7 Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #38842: Size comparison from 3388b3e to c7a4b41 Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #38842: Size comparison from d6b2cee to 9c1da9e Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #38842: Size comparison from 162df09 to b7069ac Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
This PR should have had unit tests. |
char mFriendlyNameBuffer[kFriendlyNameMaxSize]; | ||
}; | ||
|
||
class JointFabricDatastore |
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.
need documentation on usage/purpose.
Iw as looking to understand the include changes that claimed "not intended for embedded devices" ... but I don't have the intent of this class either. So what is it and what does it do?
CHIP_ERROR SetAdministratorFabricIndex(FabricIndex fabricIndex) | ||
{ | ||
mAdministratorFabricIndex = fabricIndex; | ||
return CHIP_NO_ERROR; |
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.
why do these methods return CHIP_ERROR when it is impossible for them to fail? that adds extra overhead for callers (code and complexity). Do we envision these will ever fail?
/** | ||
* Used to notify of changes in the node list and more TODO. | ||
*/ | ||
class Listener |
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.
Based on the description this is a NodeChangeListener
. Maybe adjust the name?
Implemented JF Administrator and Datastore Server methods to address #38841
Testing
Verified using docs/guides/joint_fabric_guide.md instructions.