Connection to sftp or ftp


I would like to push some files to ftp server at periodic time. Any source code can be provided ? Just a example to show the server connection and how to send a file. Thanks.


you can use scp filename


You can look at the legato timer docs for how to do something periodically. libcurl is in the toolchain and on target, so you can use that for ftp. I don’t have an example, but I am sure there are lots of examples on the web.


Thank very much for your reply guys.