AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page164of233
#SLASTCLOSURE – Detect the cause of a socket disconnection
4.- network deactivation(PDP context deactivation
from network)
Note: any time socket is re-opened, last disconnection
cause is reset. Command report 0(not available).
Note: user closure cause(#SH) is not considered and
if a user closure is performed after remote disconnection, remote disconnection
cause remains saved and is not overwritten.
Note: if more consecutive closure causes are received,
the original disconnection cause is saved.
(For instance: if a TCP FIN is received from remote
and later a TCP RST because we continue to send data,
FIN cause is saved and not overwritten)
Note: also in case of <closureType>(#SD) set to 255, if the socket has not yet been
closed by user after the escape sequence, #SLASTCLOSURE indicates remote
disconnection cause if it has been received.
Note: in case of UDP, cause 2 indicates abnormal(local)
disconnect. Cause 3 and 4 are still possible.
(Cause 1 is obviously never possible)
Note: in case of command mode connection and remote closure with
subsequent inactivity timeout closure without retrieval of all available
data(#SRECV or SRING mode 2), it is indicated cause 1 for both possible FIN and
RST from remote.
AT#SLASTCLOSUR
E=?
Test command reports the supported range for parameter <connId>
Socket Listen UDP - #SLUDP
#SLUDP - Socket Listen UDP
AT#SLUDP=
<connId>,
<listenState>[,
<listenPort>]
This command opens/closes a socket listening for an incoming UDP connection on
a specified port.
Parameters:
<connId> - socket connection identifier
1..6
<listenState> -
0 - closes socket listening
1 - starts socket listening
<listenPort> - local listening port
1..65535
Note: if successful, the command returns a final result code OK.