SetFTPSettings
Configures settings that are found in the FTP Settings dialog. For more information, see FTP Settings Dialog.
SetFTPSettings Inputs
Syntax: EV SetFTPSettings(IdleTimeout,ReadTimeout,ConnectionRetry,LocalPort,RemotePort,Passive)
Parameter |
Description |
---|---|
IdleTimeout
|
(0 to 10000), 120* |
ReadTimeout
|
(0 to 10000), 120* |
ConnectionRetry
|
(1 to 10), 1* |
LocalPort
|
(1 to 65535), 21* |
RemotePort
|
(1 to 65535), 21* |
Passive |
0 = Disabled* 1 = Enabled |
* denotes default value |
SetFTPSettings Outputs
Returns a status code, followed by the number of characters (in bytes) for the results, then the results in XML format. The status codes are:
Status Codes | Description |
---|---|
1 | The command was executed successfully. |
0 | Unrecognized command. |
-2 | The command could not be executed. |
-6 | User does not have Full
Access to execute the command. |
SetFTPSettings Example
To configure the following settings:
- IdleTimeout: 180
- ReadTimeout: 180
- ConnectionRetry: 1
- LocalPort: 21
- RemotePort: 21
- Passive: 0
Issue the following command: EV SetFTPSettings(180,180,1,21,21,0)
The In-Sight sensor responds with a status code (1), followed by the number of characters, in bytes (18). Finally, the results are returned in XML format.