WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
106
13.4 Uploading Data from the FTP Server: +FTPPUT
Description
To upload data to the FTP server
Format
AT+FTPPUT=<filename>,<type>,<mode>,<size><CR>
Parameter
<filename>: The name of the file to be uploaded
<type>: File transfer mode
1: ASCII
2: Binary
<mode>: Operation mode
1: STOR mode.
Create a file on the FTP server and write the data to the file. If
the file exists, the original file will be overwritten.
2: APPE mode.
Create a file on the FTP server and write the data to the file. If
the file exists, the data is attached to the end of the file.
3: DELE mode.
Delete a file.
<size>: Data length. The data length cannot exceed 1024.
Return Value
+FTPPUT: Error
: The format of the AT command is incorrect.
+FTPPUT:Error Not Login
: The user has not logged in to the FTP server.
+FTPPUT:AT Busy
: Last FTP AT command has not been executed
completely.
+FTPPUT:SIZE Error
: The value of
<length>
is greater than 1024 or less
than 1.
+FTPPUT:OK,<n>
: The file is sent successfully and the file length is
n
.
+FTPPUT:Delete File OK
: The file is deleted successfully.
+FTPPUT:Error!TimeOut
: You did not input file content for too long time.
Example
AT+FTPPUT=test.txt,1,1,10
>1234567890
+FTPPUT:OK,10
Upload the
text.txt
file, which is 10 in
length. The transfer mode is ASCII mode
and the operation mode is STOR.
AT+FTPPUT=test.txt,1,2,10
>1234567890
+FTPPUT:OK,10
Upload the
text.txt
file, which is 10 in
length. The transfer mode is ASCII mode
and the operation mode is APPE.
AT+FTPPUT=test.txt,1,3,0
+FTPPUT:Delete File OK
Delete the
test.txt
file.
Remarks
N/A