Specifications

HE863 family AT commands reference guide
80377ST10083a Rev.4 – 2012-02-01
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved. Page 197 of
228
#SKTL - Socket Listen
On connection close or when context is closed with #GPRS=0 the socket is closed
and no listen is anymore active.
If the context is closed by the network while in listening, the socket is closed, no
listen is anymore active and an unsolicited code is reported:
#SKTL: ABORTED
AT#SKTL?
Read command returns the current socket listening status and the last settings of
parameters <socket type>,<input port> and <closure type>, in the format:
#SKTL: <status>,<socket type>,<input port>,<closure type>
Where
<status> - socket listening status
0 - socket not listening
1 - socket listening
If the socket is closed, all parameters are set to 0.
AT#SKTL=?
Test command returns the allowed values for parameters <mode>, <socket type>,
<input port> and <closure type>.
Example
Activate GPRS
AT#GPRS=1
+IP: ###.###.###.###
OK
Start listening
AT#SKTL=1,0,1024
OK
or
AT#SKTL=1,0,1024,255
OK
Receive connection requests
+CONN FROM: 192.164.2.1
CONNECT
exchange data with the remote host
send escape sequence
+++
NO CARRIER
Now listen is not anymore active
to stop listening
AT#SKTL=0,0,1024, 255
OK
Note The main difference between this command and #SKTD is that #SKTL does not
contact any peer, nor does any interaction with the GPRS context status, leaving it