Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

File overwrite with FTPClient


SebastienLisah Aug 8, 2018 06:51 AM

Hi,

I use a CR1000 with OS32.02

I have somes problem with command FTPClient.

I woukldlike create file and append data on my FTP server (domain FTP on OVH).

I looked on the forum and I find this and this but it doesn't work.

I finded this code in document ftpsteaming : 

 

Public LoggerTemp, BattV
Public FTPResult

Const FTP_Serveur = "xxx.xxx.xxx.xxx:21"
Const FTP_USER = "xxxxxxxxxxxx"
Const FTP_PASS = "xxxxxxxxxxxx"

DataTable (FTPTest,1,-1)
  Minimum (1,BattV,FP2,False,False)
  Sample (1,LoggerTemp,FP2)
EndTable

BeginProg
  Scan (10,Sec,0,0)
    PanelTemp (LoggerTemp,250)
    Battery (BattV)
    CallTable FTPTest
  NextScan

  SlowSequence
  Do
    Delay(1,20,Sec)
    FTPResult=FTPClient (FTP_Serveur, FTP_USER, FTP_PASS, FTPTest","/Campbell/FTP_Tutorial_1.dat",8, 0, 2, Min,-1008)
  Loop

EndProg

 

And the file on my server is overwrite and not append every 2 minutes.

I try  : FTPResult=FTPClient (FTP_Serveur, FTP_USER, FTP_PASS, FTPTest","/Campbell/FTP_Tutorial_1.dat",9, 0, 2, Min,-1008) and the result is the same.

Thanks for your help, I planned a mission in 2 weeks.


SebastienLisah Aug 10, 2018 06:22 AM

Hi,

nobody to help me ?


SebastienLisah Aug 20, 2018 02:18 PM

Problem solved.

My IT department set up an FTPS server with VSFTPD and it works fine. Do not use the OVH FTP server.

Log in or register to post/reply in the forum.