WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
112
AT+TCPSENDS=0,4000
+TCPSENDS:DATA LENGTH ERROR
The sending length is incorrect.
Remarks
Ensure that the TCP connection has been set up before sending TCP data.
If the format is incorrect, the module returns
+TCPSENDS:ERROR
.
14.7 Querying the Socket Status on the Client:
+CLIENTSTATUS
Description
To query the status of the socket on the client
Format
AT+CLIENTSTATUS=<socket><CR>
Parameter
<socket>: The value of
AcceptSocket
, that is, the socket of the module. See the
description of the
AT+TCPLISTEN
command.
Return Value
+CLIENTSTATUS:<socket>,<CONNECT or DISCONNECT>,<TCP or INVALID>,
<send-buffer-size>
<CONNECT or DISCONNECT>: Socket status, value: CONNECT or
DISCONNECT
<TCP or INVALID>: Connection type, TCP or INVALID
<send-buffer-size>: The size of the available sending buffer on the module, in
decimal ASCII mode, unit: byte
Example
AT+CLIENTSTATUS=0
+CLIENTSTATUS:0,CONNECT,TCP,61
440
A TCP connection has been set up
with the socket 0 of client and the
buffer size is 61440 bytes.
AT+CLIENTSTATUS=4
+CLIENTSTATUS:4,DISCONNECT
No connection is set up on socket 4.
AT+CLIENTSTATUS=1
+CLIENTSTATUS:1,CONNECT,INVALI
D
Socket 1 works for server listening.
The module returns INVALID for the
connection type.
Remarks
If the connection type is INVALID, the link might be TCP/UDP client or server
listening connection instead of a TCP connection listened.
You can use the +IPSTATUS to query the specific type.