LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 212 of 273
#SKTSET - Socket Definition
either:
-
any valid IP address in the format: xxx.xxx.xxx.xxx
-
any host name to be solved with a DNS query in the format:
<host name>
(factory default is the empty string “”)
<closure type>
- socket closure behaviour for TCP
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (
+++
)
<local port>
- local host port to be used on UDP socket
1..65535 - port number (factory default is 0)
Note:
<closure type>
parameter is valid only for TCP socket type, for UDP sockets
shall be left unused.
Note:
<local port>
parameter is valid only for UDP socket type, for TCP sockets
shall be left unused.
Note: The resolution of the host name is done when opening the socket, therefore if
an invalid host name is given to the
#SKTSET
command, then an error message
will be issued.
Note: the DNS Query to be successful requests that:
-
the EPS context 1 is correctly set with
-
the authentication parameters are set
-
the EPS coverage is enough to permit a connection.
AT#SKTSET?
Read command reports the socket parameters values, in the format:
AT#SKTSET: <socket type>,<remote port>,<remote addr>,
<closure type>,<local port>
AT#SKTSET=?
Test command returns the allowed values for the parameters.
Example
AT#SKTSET=0,1024,"www.telit.net"
OK
Note
Issuing command #QDNS will overwrite <remote addr> setting.
#QDNS - Query DNS
AT#QDNS=
[<host name>]
Execution command executes a DNS query to solve the host name into an IP
address.
Parameter:
<host name>
- host name, string type.
If the DNS query is successful then the IP address will be reported in the result
code:
#QDNS:"<host name>",<IP address>
Note: the command has to activate the EPS context if it was not previously
activated. In this case the context is deactivated after the DNS query.
Summary of Contents for LE910-SKG
Page 1: ......