ConnectFtp: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (removed Category:Voice using HotCat) |
||
Line 41: | Line 41: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:R2D2]] | [[Category:R2D2]] |
Revision as of 17:36, 1 April 2025
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
Command status:
"%s\n", status (CONNECTED or NO INCOMING CALL)
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