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

Missing commands of FS manager #120

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Missing commands of FS manager #120

merged 2 commits into from
Oct 23, 2023

Conversation

philips77
Copy link
Member

This PR adds missing commands of the FileSystem manager:

  • file status
  • crc32
  • sha256
  • closing all open files

The crc32 and sha256 commands were split into 2 methods as they use different return type: uint or byte string: https://docs.zephyrproject.org/latest/services/device_mgmt/smp_groups/smp_group_8.html#file-hash-checksum

The command for returning supported checksum/hash types is not implemented as it's using dynamic type names, which cannot be parsed using automatic type mapper. Also, as calculating checksum/hash has hardcoded types to crc32 and sha256, it's not really possible to request other type.

If anyone ever will need this functionality, were open for PRs!

@philips77 philips77 merged commit 8ccf822 into main Oct 23, 2023
1 check passed
@philips77 philips77 deleted the improvement/fs-manager branch October 23, 2023 12:19
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.

None yet

1 participant