Replies: 2 comments
-
@nordicjm can you take a look please? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Interesting, the smp package is definitely only supporting bytes: https://jphutchins.github.io/smp/latest/file_management/#smp.file_management.FileUploadRequest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The Zephyr SMP
File upload
section is unclear with respect to the required encoding of thedata
payload information.The current documentation lists file upload request payload as:
where the file download response is:
In an upload request,
data
must by abyte str
by way of:ZCBOR_MAP_DECODE_KEY_DECODER("data", zcbor_bstr_decode, &file_data),
see:
zephyr/subsys/mgmt/mcumgr/grp/fs_mgmt/src/fs_mgmt.c
Line 367 in b88d0bf
"CBOR data of request" as well as the description of the "data" field need to be updated to reflect that only a
ZCBOR_MAJOR_TYPE_BSTR
is accepted.Environment
services/device_mgmt/smp_groups/smp_group_8
Beta Was this translation helpful? Give feedback.
All reactions