ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 387 of 545 2020-04-15
3.13.17. AT#SRECV - Socket Receive Data in Command Mode
The command permits the user to read data arrived through a connected socket when the module is in
command mode.
AT#SRECV=<connId>,<maxByte>[,<UDPInfo>]
Execution command permits the user to read data arrived through a connected socket but buffered
and not yet read because the module entered command mode before reading them; the module is
notified of these data by a SRING: URC, whose presentation format depends on the last
#SCFGEXT setting.
Parameters:
socket connection identifier
socket connection identifier. conMax value is returned by test
command
max number of bytes to read
max number of bytes to read
enables/disables the visualization of UDP datagram
information.
UDP information enabled, see Additional info section.
If <UDPInfo> is set to 1 (AT#SRECV=<connId>,<maxBytes>,1), the command returns a
message having the following format:
#SRECV: <remoteIP>,<remotePort><connId>,<recData>,<dataLeft>
remaining bytes in the datagram.
Issuing #SRECV when there is no buffered data raises an error.