EasyManua.ls Logo

Neoway N11 V2 - Downloading Data from FTP Server (+FTPGET)

Neoway N11 V2
134 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
81
ERROR
Remarks
N/A
12.3 Downloading Data from the FTP Server: +FTPGET
Description
To download data from the FTP server
Format
AT+FTPGET=[<dir&filename>],<type>,<content or info>[,<size>][,<len>]<CR>
Parameter
<Dir&filename>:Path and name of the file to be read(Note: The file directory under
the FTP root directory)
<Type>:File transfer mode:
1: ASCII
2: Binary
<content or info>: File content or file (or specified directory) information
1: Obtain the file content
2: Obtain the information of the file or the specified path
<size>: Specifies where file data starts. This parameter is valid only when <content
or info> is 1.
0 (or blank): Obtain all data of the file.
Other values: Smaller than the data length of the file.
<len>: Length of file downloaded from the start point. Max. value: 5120
Return Value
+FTPGET: Error: The format of the AT command is incorrect
+FTPGET:Error Not Login: The user has not logged in to the FTP server.
+FTPGET:AT Busy: Last FTP AT command has not been executed
completely.
+FTPGET: Error!TimeOut: Some failure is caused by download timeout
(timeout period is 30 seconds) and the module does not receive data from the
FTP server within 30 seconds.
+FTPGET:<length>,<data>: <length> indicates the data length; <data>
indicates the data content.
+FTPGET:OK.total length is <n>: The module reads data successfully and
the data length is n.
+FTPGET:OK.partial length is <n>: The module reads the data of <n> byte
successfully.
+FTP:Server Data Link Disconnect: The link is disconnected after the data
is downloaded. It will be connected automatically when the module downloads

Table of Contents

Related product manuals