ConnectFtp: Difference between revisions
Jump to navigation
Jump to search
m (removed Category:Voice using HotCat) |
No edit summary Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
'''OUTPUT''' | '''OUTPUT''' | ||
Success or Error Message (See [[Data Messages|Data Commands Messages]]) | |||
'''EXAMPLE''' <syntaxhighlight lang="text"> | '''EXAMPLE''' <syntaxhighlight lang="text"> | ||
Line 42: | Line 41: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:R2D2]] | [[Category:R2D2]] | ||
[[Category:DATA]] |
Latest revision as of 18:05, 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 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