PutGetOption (Send or Receive a File)
Determines 1) whether the datalogger will send or retrieve a file, 2) whether active or passive mode is used, and 3) whether FTP
Active vs. Passive mode
In active mode, the client initiates contact with the server and the server must connect back to the client on the port specified by the client. This response from the server may be blocked by the client’s firewall. Passive mode resolves the issue of firewalls by having the client issue a PASV command that opens two random unprivileged ports to the server. In response to the PASV command from the client, the server sends a random port number back to the client. Finally, the client initiates a connection from the server via the port specified by the server. Not all servers support passive mode.
FTPS
The default server port for implicit FTPS is 990. Otherwise, explicit security is used. Implicit security automatically begins with an SSL connection as soon as the FTP client connects to an FTP server, whereas with explicit security, the client and server negotiate the level of protection used.
Right-click the parameter to display a list with the options:
| Option Code | Description |
|---|---|
| 0 | FTP - Store file to server, active mode |
| 1 | FTP - Retrieve file from server, active mode |
| 2 | FTP - Store file to server, passive mode |
| 3 | FTP - Retrieve file from server, passive mode |
| 4 | FTP - Delete file on server |
| 5 | FTP - Rename file on server |
| 6 | FTP - Directory listing, active mode. Returns a directory listing (instead of a file) into LocalFileName. The path to the directory of the FTP server from which to return the directory listing is specified in the RemoteFileName parameter. This is similar to the FTP LIST command. -6 returns file names only (similar to NLST) |
| 7 | FTP - Directory listing, passive mode. Returns a directory listing (instead of a file) into LocalFileName. The path to the directory of the FTP server from which to return the directory listing is specified in the RemoteFileName parameter. This is similar to the FTP LIST command.-7 returns file names only (similar to NLST) |
| 8 | FTP - Append data to end of file, active mode (creates a file if it does not already exist) |
| 9 | FTP - Append data to end of file, passive mode (creates a file if it does not already exist) |
| 10 | FTPS - Store file to server, active mode |
| 11 | FTPS - Retrieve file from server, active mode |
| 12 | FTPS - Store file to server, passive mode |
| 13 | FTPS - Retrieve file from server, passive mode |
| 14 | FTPS - Delete file on server |
| 15 | FTPS - Rename file on server |
| 16 | FTPS - Directory listing, active mode. Returns a directory listing (instead of a file) into LocalFileName. The path to the directory of the FTP server from which to return the directory listing is specified in the RemoteFileName parameter. This is similar to the FTPS LIST command. -16 returns file names only (similar to NLST) |
| 17 | FTPS - Directory listing, passive mode. Returns a directory listing (instead of a file) into LocalFileName. The path to the directory of the FTP server from which to return the directory listing is specified in the RemoteFileName parameter. This is similar to the FTPS LIST command.-17 returns file names only (similar to NLST) |
| 18 | FTPS - Append data to end of file, active mode (creates a file if it does not already exist) |
| 19 | FTPS - Append data to end of file, passive mode (creates a file if it does not already exist) |
FTPS(TLS) requires an adjustment to the memory used by communication. A new pool of memory of size 53684 bytes is required. The PutGetOption governs this. If this option is variable, that is, not known at compile time, then enough memory is allocated to accommodate TLS.
Type: Variable