SendFtpFile

From Opale Wiki
Jump to navigation Jump to search

This command sends a specified file to a FTP server through the specified GSM port.

It requires an active FTP session on the specified GSM port.

Command waits until file is sent or optional timeout (entered in seconds) expired

COMMAND

Command Line Arguments Returns
SendFtpFile PortIndex, LocalFilePath, RemoteFilePath, [Timeout] Error Code in case of error.

OUTPUT

Success or Error Message (See Data Commands Messages)

EXAMPLE

~# SendFtpFile 0 "/mnt/sdcard/tmp/test.dat" "./test.dat"
FILE SENT

~# SendFtpFile 1 "wrongfile" "./wrongfile"
FILE NOT FOUND

~# SendFtpFile 0 "/mnt/sdcard/tmp/test.dat" "./test.dat"
FTP DISCONNECTED

~# SendFtpFile 1 "/mnt/sdcard/tmp/test.dat" "./test.dat" 30
TIMEOUT EXPIRED