Specifications

UC864-E/G/WD/WDU AT Commands Reference Guide
80304ST10041a Rev. 7 - 2010-10-14
Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 251 of 318
3.5.7.2.10. Socket Listen - #SL
#SL - Socket Listen
AT#SL=<connId>,
<listenState>,
<listenPort>
[,<lingerT>]
This command opens/closes a socket listening for an incoming 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
0..65535
<lingerT> - linger time
0 - immediate closure after remote closure
255 - local host closes only after an escape sequence (+++)
Note: if successful, commands returns a final result code OK . Then, when
there’s an incoming connection on the local port and if the sender is not
filtered by internal firewall (see
#FRWL
), an URC is received:
SRING : <connId>
Note: the command #SCFGEXT doesn’t influence the presentation format
of the URC SRING
Afterwards we can use #SA to accept the connection or #SH to refuse it.
If the socket is closed by the network the follo
wing URC is received:
#SKTL: ABORTED
AT#SL? Read command returns all the actual listening sockets.
AT#SL=? Test command returns the range of supported values for all the
subparameters.
Example at#scfg?
#SCFG: 1,1,300,90,600,50
#SCFG: 2,2,300,90,600,50
#SCFG: 3,2,250,90,600,50
#SCFG: 4,1,300,90,600,50
#SCFG: 5,1,300,90,600,50
#SCFG: 6,1,300,90,600,50
OK