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

feat: rework NVM access, support incremental NVM modification over serial #7153

Merged
merged 19 commits into from
Sep 20, 2024

Conversation

AlCalzone
Copy link
Member

This PR reworks the NVM modification capabilities, which currently require the full round trip:

  • NVM backup
  • Convert to JSON representation
  • Modify JSON
  • Convert to binary
  • NVM restore

The changes here allow incrementally modifying the NVM by reading/writing/deleting individual "properties", either from a file, or directly via serial.

As a bonus, it adds a new nvm property to the Controller class, which gives applications access to this functionality.

Enables: #7096

test/run.ts Fixed Show fixed Hide fixed
packages/nvmedit/src/lib/NVM3.ts Fixed Show fixed Hide fixed
packages/nvmedit/src/nvm3/nvm.ts Fixed Show fixed Hide fixed
packages/nvmedit/src/nvm3/nvm.ts Fixed Show fixed Hide fixed
@AlCalzone

This comment was marked as resolved.

@AlCalzone AlCalzone changed the title feat: reworked NVM access for incremental modifications via serial feat: incremental NVM modifications, including over serial Sep 20, 2024
@AlCalzone AlCalzone marked this pull request as ready for review September 20, 2024 10:03
@AlCalzone AlCalzone changed the title feat: incremental NVM modifications, including over serial feat: rework NVM access, support incremental NVM modification over serial Sep 20, 2024
@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

@zwave-js-bot zwave-js-bot merged commit 0b79b29 into master Sep 20, 2024
17 checks passed
@zwave-js-bot zwave-js-bot deleted the better-nvm-access branch September 20, 2024 10:49
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