where can i find API for sending a command over smp service for downloading a file from file system

hello Nordic

i am working with ncs v2.5.0 (with nrf52840 and nrf52832)

i am using the fs_mgmt.c for upload/download files from lfs.

till now used it only on one side, peripheral which receives a request to download that activate the relevant handlers. 

now we want to download a file with smp with 2 devices, both running on ncs. 

is there an example for api commands for downloading files from another device ? 

if not can you direct to me where to look for that api 

hope to read you soon

best regards

Ziv

Parents Reply
  • Hi Ziv,

    ziv123 said:
    seems to me that i have to implement something like img_mgmt_client.c for fs -> fs_mgmt_client.c 

    Yes, Zephyr does not include a client for fs_mgmt, so this is something you will need to implement, unfortunately. I'm not that familiar with this code, so my best suggestion is to use the img_mgmt_client.c implementation as a reference.

    Best regards,

    Vidar

Children
No Data
Related