-
Notifications
You must be signed in to change notification settings - Fork 37
Add write approval callbacks for Failsafe values of CS-LPC usecase #150
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
base: dev
Are you sure you want to change the base?
Conversation
Thanks for starting the work on this. I do now think that the write approval callback API should be used for all writes on any server feature. |
cdd7418
to
7be66c0
Compare
I was waiting for some final qualification tests to ensure that a "spec-compliant" implementation can be achieved for LPC/LPP with this PR. The final test is still outstanding due to delays with the qualification, but I'm reasonably confident that no further changes are necessary to this PR to fully pass the qualification. |
… feature. Made implementation of approval mechansim more general towards the device configuration feature.
This allows to more easily check for what a new value is trying to be set and what kind of value is being set (i.e. a duration, a bool, string etc.)
7be66c0
to
dc13778
Compare
@sthelen-enqs I analyzed the PR with Claude and iterated a bit over it. Here is its summary: Based on my analysis, the PR implementation is well-designed and follows the established patterns correctly. Here are my recommendations:
In deviceConfigurationWriteCB, fix the format string:
Add a comment in the interface or README explaining the approval pattern: // WriteApprovalRequired event is fired when any server feature receives a write request
For better developer experience, consider adding helper methods to check if specific configurations are pending:
Ensure tests cover:
Summary The PR implementation is functionally complete and well-designed. It correctly:
The only required change is the logging fix. The other suggestions are optional improvements for developer experience and documentation. |
c62b1bf
to
07809b9
Compare
|
This is a work-in-progress proposal for adding write approval callbacks for the failsafe values of the CS-LPC usecase.
Code changes should be functional, but are not yet final. Cleanup and thorough testing may still be required.
Fixes/updates from our side should come when I can find the time to do so. If someone wants to use/update this in the meantime, feel free.
Comments/fixes etc are welcome.