Technical information

File Transfer Protocol (FTP)
2-26 AT+i Commands Reference Manual May 31, 2008
+iFSTO - FTP Open File for Storage
I/OK When command has been received and about to be processed.
I/ERROR If <F_hn> is not an open FTP session or otherwise some error has occurred.
Followed by:
I/ERROR If the FTP RECV command could not be processed.
-or- I/<sz><CR><LF>
Followed by: <data stream>
where,
<sz> is the exact size (in bytes) of the <data stream> to follow. If <sz>
cannot be determined, W24 returns I/0 followed by the data stream. When
this is the case, the host must monitor for a timeout condition of at least 5
seconds without any data being transmitted before seeing the I/ONLINE to
deduce that the data stream is complete.
If <sz> was reported but a transmission error occurred, preventing the W24
from returning all <sz> data bytes - an I/ERROR command is issued after
a 5 seconds non-transmission period. See FTP Receive Flow Diagram.
Followed by:
I/ONLINE After successfully retrieving file contents.
Syntax: AT+iFSTO:<F_hn>,<path>[,<sz>]
Opens a remote FTP server file for upload.
Parameters:
<F_hn> An open FTP session handle.
<path> Destination file pathname.
<sz> Optional size in bytes to reserve for the file on the remote FTP server.
Command Options:
<F_hn> Must have been obtained by a previous execution of an AT+iFOPN
command during the current Internet mode session.
<path> Absolute or relative path name of the remote destination file.
Following this command, data is transferred to the remote file using one or
more +iFSND commands. The file transfer is complete by issuing a +iFCLF
(FTP File Close) command.
Result Code:
I/OK If file <path> was successfully opened for writing on the FTP server.
I/ERROR Otherwise.