9 socket listen - #sl, 10 socket accept - #sa – Rainbow Electronics GM862-QUAD-PY User Manual
Page 323

AT Commands Reference Guide
80000ST10025a Rev. 5 - 09/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 323 of 434
#SO - Socket Restore
SELINT 2
1..6
AT#SO=?
Test command reports the range of values for
3.5.7.3.9 Socket Listen - #SL
#SL - Socket Listen
SELINT 2
AT#SL=
[,
This command opens/closes a socket listening for an incoming connection
on a specified port.
Parameters:
1..6
0 - closes socket listening
1 - starts socket listening
0..65535
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (+++) or after an abortive
disconnect from remote.
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 :
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 following URC is received:
#SL: 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
Next command opens a socket listening on port 3500
AT#SL=1,1,3500
OK
3.5.7.3.10 Socket Accept - #SA