Hi guys,
I am trying to set up a FTP pushing service following the steps
Got it from
https://s.campbellsci.com/documents/us/technical-papers/ftp-streaming.pdf
My CR1 code is like Example A-1 in the link
Public LoggerTemp, BattV
Public FTPResult
'Define Data Tables.
DataTable (FTPTest,1,-1) 'Set table size to -1 to autoallocate.
DataInterval (0,15,Sec,10)
Minimum (1,BattV,FP2,False,False)
Sample (1,LoggerTemp,FP2)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (LoggerTemp,250)
Battery (BattV)
CallTable FTPTest
NextScan
SlowSequence
Do
Delay(1,10,Sec)
'Create file named FTP_Tutorial_1.csv and append data to the file every 5 minutes
FTPResult=FTPClient ("computer-name.domain.com", "Tutorial", "Tutorial_PW", "FTPTest", "FTP_Tutorial_1.csv", 9, 0, 5, Min, -1008)
Loop
EndProg
But the FTP pushing is not successfol.
I get a warn when I use TroubleShooter:
Warn: CR1000: 2018-09-14 16:51:55 | "transaaction failure","timed out or resource error","check/set clock".
I am a little confused. The clock of datalogger has been set when I configure it. Do I have to set the clock in the program? But there is no such settings in example A-1.
Thank you!
I think possibly there is some configuration errors with my Firewall? I am using an active mode FTP client in my network to reach a FTP server in the public Internet. I got these logs while using the log tools (A printscreen):
https://www.dropbox.com/s/60ningm8fnvtkvt/catch.PNG?dl=0
Thanks for your help!