Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
79
OK
+TCPSENDS:0,10
AT+TCPSENDS=0,10
+TCPSENDS:SOCKET ID NOT
ACTIVE
No link has been set up using socket 0.
AT+TCPSENDS=0,10
+TCPSENDS:ERROR
No TCP link is set up on link 0 through
listening, but some link of other type might
have been set up.
AT+TCPSENDS=0,10
>
+TCPSENDS:Error!TimeOut
10 seconds timed out. No data is input. The
module returns ERROR.
AT+TCPSENDS=0,4000
+TCPSENDS:DATA LENGTH ERROR
The sending length is incorrect.
Remarks
Ensure that the TCP link has been set up before sending TCP data.
If the format is incorrect, the module returns
+TCPSENDS:ERROR
.
12.7 Querying the Link Status on the Client: +CLIENTSTATUS
Description
To query the status of the link with the client
Format
AT+CLIENTSTATUS=<socket>
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>: Link status, value: CONNECT or DISCONNECT
<TCP or INVALID>: Link type, value: TCP or INVALID
<send-buffer-size>: The size of the available send buffer on the module, in decimal ASCII
mode, unit: byte
Example
AT+CLIENTSTATUS=0
+CLIENTSTATUS:0,CONNECT,TCP,61440
A TCP link has been set up with the
socket 0 client and the buffer size is
61440 bytes.
AT+CLIENTSTATUS=4
+CLIENTSTATUS:4,DISCONNECT
No link is set up on socket 4.
AT+CLIENTSTATUS=1
+CLIENTSTATUS:1,CONNECT,INVALID
Socket 1 works for server listening. The
module returns INVALID for the link
type.
Remarks
If the link type is INVALID, the link might be TCP/UDP client instead of a TCP link
listened.
You can use the +IPSTATUS to query the specific type.