ConnectFtp: Difference between revisions

From Opale Wiki
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
Tag: 2017 source edit
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:


This command connects to a given FTP server on the specified GSM port.


This command allows to accept an incoming call once presented on the specified 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.
|}
|}


'''OUTPUT'''
'''OUTPUT'''
Command status: <br>
Success or Error Message (See [[Data Messages|Data Commands Messages]])
"%s\n", status (CONNECTED or NO INCOMING CALL)


'''EXAMPLE''' <syntaxhighlight lang="text">
'''EXAMPLE''' <syntaxhighlight lang="text">


~# AcceptCall 0<br>
~# ConnectFtp 0 ftp.acme.com "user1" "pass123"
CONNECTED<br>
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


~# AcceptCall 2<br>
NO INCOMING CALL


</syntaxhighlight>
</syntaxhighlight>
[[Category:Voice]]
[[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