ConnectFtp: Difference between revisions
Jump to navigation
Jump to search
(Created page with " This command allows to accept an incoming call once presented on the specified port. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |ConnectFtp |PortIndex |Error Code in case of error. |} '''OUTPUT''' Command status: <br> "%s\n", status (CONNECTED or NO INCOMING CALL) '''EXAMPLE''' <syntaxhighlight lang="text"> ~# AcceptCall 0<br> CONNECTED<br> ~# AcceptCall 2<br> NO INCOMING CALL </syntaxhighlight> [[Category:Voice]...") Tag: 2017 source edit |
No edit summary |
||
Line 1: | Line 1: | ||
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 10: | Line 17: | ||
|- | |- | ||
|ConnectFtp | |ConnectFtp | ||
|PortIndex | |PortIndex, FTPServerIPAddress[:Peer Port],UserName,Password [Timeout] | ||
|[[R2D2 Error Codes|Error Code]] in case of error. | |[[R2D2 Error Codes|Error Code]] in case of error. | ||
|} | |} | ||
Line 20: | Line 27: | ||
'''EXAMPLE''' <syntaxhighlight lang="text"> | '''EXAMPLE''' <syntaxhighlight lang="text"> | ||
~# | ~# ConnectFtp 0 ftp.acme.com "user1" "pass123" | ||
CONNECTED | 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 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Voice]] | [[Category:Voice]] | ||
[[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