Page 1 of 1

Synchronization with FTP with CSPro 7

Posted: May 9th, 2017, 12:43 am
by sah
Dear Greg & Josh
Just inquiring, if it is possible to use the function sync connect to connect to FTP for those who don't have a server and if so, is it the same file specification as the server syntax.

Connect to ftp
if syncconnect(ftp, "http://192.168.10.10", "ftpuser", "password")

Thanks

Re: Synchronization with FTP with CSPro 7

Posted: May 9th, 2017, 6:24 am
by josh
Yes, you can. However you have to as an ftp url rather than a http url:

if syncconnect(ftp, "ftp://192.168.10.10", "ftpuser", "password") then

In the current beta release (March 31) FTP only works with syncfile() but in the final CSPro 7 release coming very soon it will support syncdata() too.

Also note that you can leave out the username and password arguments and CSPro will prompt you for them the first time and then save them in secure storage.