ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 435 of 545 2020-04-15
3.14.14. 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).
AT#FTPRECV?
Read command reports the number of bytes currently transferred from FTP server in the format:
#FTPRECV: <available>
Additional info:
number of transferred bytes and available for
reading
AT#FTPRECV=?
Test command returns the supported values for parameter <blocksize>.