6.38
AT+S.SOCKON
To open a socket client. Up to 8 socket clients can be set simultaneously on the device. The command returns the
identifier to be used for operations on the socket.
Usage:
AT+S.SOCKON=<hostname>,<port>,<NULL>,<kind><cr>
Parameters:
<hostname>
Remote Server. DNS resolvable name or IP address
<port>
TCP/UDP socket port
<kind>
This parameter can assume the values:
•
t → tcp
•
u → udp
•
s → TLS socket using <Hostname> as domain name.
•
TLS Server Domain Name → Common name of the
server (URL or the CN field reported into server
certificate) for TLS socket
Result:
AT-S.On:<IP>:<id>
<IP>
Specifies the server IP address
<id>
Specifies the socket client identifier
6.39
AT+S.SOCKQ
To query a socket client for pending data. The command returns the number of bytes that are waiting on the
socket.
Usage:
AT+S.SOCKQ=<id><cr>
Parameters:
<id>
Socket Client ID
Result:
UM2114
AT+S.SOCKON
UM2114
-
Rev 3
page 27/66