At+Qftpsize Get The File Size On Ftp Server - Quectel WCDMA UG FTP Series At Command Manual

Umts/hspa module
Table of Contents

Advertisement

UMTS/HSPA Module Series
WCDMA UGxx FTP AT Commands Manual
Example
//Download a file and output to COM port.
AT+QFTPGET="test.txt", "COM:",0
CONNECT
<Output file data >
OK
+QFTPGET: 0,1000
//Download a file and output to COM port twice, each time in 500 bytes.
AT+QFTPGET="test.txt","COM:",0,500
//The size of "test.txt" is 1000 bytes, download the first 500
bytes.
CONNECT
<Output file data >
OK
+QFTPGET: 0,500
AT+QFTPGET="test.txt", "COM:",500,500
//Download 500-1000 bytes.
CONNECT
<Output file data >
OK
+QFTPGET: 0,500
//
a file and save it to RAM.
Download
AT+QFTPGET="test.txt", "RAM:test2.txt",0
OK
+QFTPGET: 0,1000
AT+QFLST="RAM:*"
+QFLST: "RAM:test2.txt",1000
OK

2.7. AT+QFTPSIZE Get the File Size on FTP Server

Get the file size on FTP server. If "OK" is returned, "+QFTPSIZE: 0,<file_size>" or "+QFTPSIZE:
<err>,<protocol_error>" should be output in <timeout> set by AT+QFTPCFG. Otherwise, you should
close the FTP connection, deactivate and reactive the network.
WCDMA_UGxx_FTP_AT_Commands_Manual
Confidential / Released
20 / 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents