Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds missing commands of the FileSystem manager:
The
crc32
andsha256
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-checksumThe 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
andsha256
, it's not really possible to request other type.If anyone ever will need this functionality, were open for PRs!