Result:
AT-S.On:<id>
<id>
Specifies the socket server identifier
6.45
AT+S.SOCKDQ
To query a socket server for pending data.
Usage:
AT+S.SOCKDQ=<sid>,<cid><cr>
Parameters:
<sid>
socket server identifier
<cid>
socket client identifier
Result:
AT-S.Query:<len>
<len>
Specifies the number of bytes in client buffer
6.46
AT+S.SOCKDC
To close a socket server or to disconnect a client.
Usage:
AT+S.SOCKDC=<sid>
to close the specified socket server (and disconnect all
clients)
AT+S.SOCKDC=<sid>[,<cid>]
to disconnect the specified client, if client_id is given. If not, all
clients are disconnected, and server is closed
Parameters:
<sid>
socket server identifier
<cid>
socket client identifier
Note:
Flushing pending data (using the AT+S.SOCKDR command) is mandatory before closing the socket
connection (AT+S.SOCKDC). If the buffer is not empty, the “ERROR: Pending data” is raised.
UM2114
AT+S.SOCKDQ
UM2114
-
Rev 3
page 30/66