ReceiveFtpFile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
!Returns | !Returns | ||
|- | |- | ||
|ReceiveFtpFile | |'''ReceiveFtpFile''' | ||
|PortIndex, RemoteFileName, LocalFileName, [Timeout] | |PortIndex, RemoteFileName, LocalFileName, [Timeout] | ||
|File saved in specified local file name, [[R2D2 Error Codes|Error Code]] in case of error. | |File saved in specified local file name, [[R2D2 Error Codes|Error Code]] in case of error. |
Latest revision as of 19:54, 1 April 2025
This command receives a specified file from FTP server on the specified GSM port.
It requires a already opened FTP session on the specified GSM port.
Command waits until file is received or optional timeout (entered in seconds) expired.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
ReceiveFtpFile | PortIndex, RemoteFileName, LocalFileName, [Timeout] | File saved in specified local file name, Error Code in case of error. |
OUTPUT
Success or Error Message (See Data Commands Messages)
EXAMPLE
~# ReceiveFtpFile 0 "./test.dat" "/mnt/sdcard/tmp/test.dat" 120
FILE RECEIVED
~# ReceiveFtpFile 0 "./test.dot" "/mnt/sdcard/tmp/test.dat"
FILE NOT FOUND
~# ReceiveFtpFile 1 "./test.dat" "/mnt/sdcard/tmp/test.dat"
FTP DISCONNECTED
~# ReceiveFtpFile 1 "./test.dat" "/mnt/sdcard/tmp/test.dat"
TIMEOUT EXPIRED