ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev. 11 Page 752 of 1039 2021-09-23
3.16.16. AT#FTPRECV - Receive Data in Command Mode
The command permits the user to read a given amount of data already transferred via
FTP from a remote file.
AT#FTPRECV=<blockSize>
Execution command permits the user to transfer at most <blocksize>
bytes of remote file, provided that retrieving from the FTP server has been
started with a previous #FTPGETPKT command, onto the serial port.
This number is limited to the current number of bytes of the remote file
which have been transferred from the FTP server.
Parameter:
maximum number of bytes to read
maximum number of bytes to read
It is necessary to have previously opened FTP data port and started
download and buffering of remote file through #FTPGETPKT
command.
Issuing #FTPRECV when there is no FTP data port opened raises
an error.
Data port will stay opened if socket is temporary waiting to receive
data (#FTPRECV returns 0 and #FTPGETPTK gives an EOF 0
indication).