Sub Activity_Create(FirstTime As Boolean)
FTP.Initialize(Activity, Me, "my-ftp-server", "user", "pass", 21, True, False)
downloadFtpFiles
End Sub
Sub downloadFtpFiles
ftpDown = True
If FTP.WiFi_IsConnected Then
FTP.SetProcessCompleteOn(True)
FTP.SetCompletedDownloadDialog(True,"Download erfolgreich")
FTP.DownloadFileSet(File.DirRootExternal, Array As String("*.new", "*.new"), False)
Else
Msgbox("Message......","Error")
End If
End Sub
Sub uploadFtpFiles
ftpDown = False
If FTP.WiFi_IsConnected Then
FTP.SetStealthOn(True)
FTP.UploadFileSet("/", Array As String(File.DirRootExternal & "/*.db", "*"), False)
End If
End Sub
Sub FTP_ProcessComplete
Log("ftpDown is " & ftpDown)
If ftpDown = True Then uploadFtpFiles
End Sub