ConnectFtp
This command connects to a given FTP server on the specified GSM port.
FTP server connection details are provided in parameters
Prerequisites : Data link should be UP on the given port (See ConnectData)
If any of required parameters is not needed it can be specified as empty string ("").
Command returns once connection is established or optional timeout (entered in seconds) expired.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
ConnectFtp | PortIndex, FTPServerIPAddress[:Peer Port],UserName,Password [Timeout] | Error Code in case of error. |
OUTPUT Success or Error Message (See Data Commands Messages)
EXAMPLE
~# ConnectFtp 0 ftp.acme.com "user1" "pass123"
FTP CONNECTED
~# ConnectFtp 0 10.0.0.1 "user1" "pass123"
DESTINATION HOST NOT REACHABLE
~# ConnectFtp 1 ftp.acme.com "user1" "pass123"
DATA LINK IS DOWN
~# ConnectFtp 1 ftp.acme.com "user1" "pass"
PASSWORD REJECTED BY SERVER