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.

FTP stream: first record timestamp as filename.


pkeravec Feb 10, 2026 09:34 AM

Hello,

I'm trying to send data every hour to a server via ftp in files called "Table_YYYY-MM-DD_.dat":

FTPResult=FTPClient ("192.168.1.1", "User", "User_PW","FTPTest2", "FTPBale_YYYY-MM-DD_HH-MM-SS", 2, 0, 1, Hr, 8)

The files received contain the expected record records, but its behavious is different from the doc (I'm using a CR300 this time but it is the same for a CR6 datalogger). The timestamp of the file is supposed to be the first record timestamp, but it appears to be the last one.

From https://help.campbellsci.com/crbasic/cr300/#Instructions/ftpclient.htm:

If streaming data, the timestamp of the first record streamed is used in the remote file name. If data streaming is not used, the current datalogger clock time is used.

Am I missing something or there is an error un the doc? I really hope I'm missing something!

I thought about using the timestamp function of the tables to reconstruct it but as the connexion is not stable, I prefer to use the build-in function of ftpclient.

Regards,

Pascal


JDavis Feb 11, 2026 11:58 PM

I will investigate this and work on clarifying help to match the behavior.

If using the append option, you should see the file name set based on the timestamp of the first record.

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