Legato application update from ftp

Hi
did anybody try to update application from remote ftp server? is there any sample code available for SOTA from ftp server without airvantage?

Thanks

Hi Nila,

You should be able to get your FTP working using the lib curl. The sample use of libcurl for HTTP Get request is already available in the HTTPGET sample.

Following the HTTP Get sample you should be able to build the FTP client code using curl. Below is FTPGET c example code using curl which should provide you the quick reference to get started:

https://curl.haxx.se/libcurl/c/ftpget.html

Below is a command line example if you wish to give a quick try over the command line:

http://linux.byexamples.com/archives/320/using-curl-to-access-ftp-server/

Once your application is downloaded in the target over FTP, you can use the update tool in the target to install the application.

Thanks

Pankaj

1 Like

Hi @niladridm,

also you might able to combine some code from the httpGet sample app (which uses curl) and the update API to bundle that as a Legato app.