ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 378 of 545 2020-04-15
3.13.12. AT#SL - Socket Listen
The command opens/closes socket listening.
AT#SL=<connId>,<listenState>,<listenPort>[,<lingerT>]
Set command opens/closes a socket listening for an incoming TCP connection on a specified port.
Parameters:
If successful, command returns a final result code OK. If the ListenAutoRsp flag has not
been set through the command #SCFGEXT (for the specific <connId>), then, when a
TCP connection request comes on the input port, if the sender is not filtered by internal
firewall (see #FRWL), an URC is received:
+SRING : <connId>
Afterwards we can use #SA to accept the connection or #SH to refuse it.
If the ListenAutoRsp flag has been set, then, when a TCP connection request comes on
the input port, if the sender is not filtered by the internal firewall (see #FRWL), the
connection is automatically accepted: the CONNECT indication is given and the modem
goes into online data mode.
If the socket is closed by the network the following URC is received:
#SKTL: ABORTED