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 user@server.xxx:/path/to/dir/
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.
hi do you find any example for ftp data upload if so pls share the code
You can try this
when i include socket.h and its inbuild functions in legato it triggers error
you should include
#include <sys/socket.h> //socket
Here also says you can use curl API: