EasyManua.ls Logo

Neoway M590E - Querying the Connection Status on the Client: +CLIENTSTATUS

Neoway M590E
65 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
46
Format
AT+TCPSENDS=<socket>,<length><CR>
Parameter
<socket>: The value of
AcceptSocket
, that is, the socket of the module. See the
description of the
AT+TCPLISTEN
command.
<length>: The length of the data to be sent, value ranges from
1
to
2000
, unit: byte.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSENDS: <socket>,<length><CR><LF>
Example
AT+TCPSENDS=0,10
>1234567890
OK
+TCPSENDS:0,10
10-byte data is successfully sent through
socket 0.
AT+TCPSENDS=0,536
>1234567890
+TCPSENDS:Buffer not enough,439
536-byte data is sent on socket 0. Failed to
transmit the data because internal buffer is
insufficient.
AT+TCPSENDS=0,1024
>
+TCPSENDS:ERROR
The module (server) sends TCP data and
encounters data congestion.
Remarks
Ensure that the TCP connection has been set up before sending TCP data.
6.6 Querying the Connection Status on the Client:
+CLIENTSTATUS
Description
To query the status of the connection with 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
<CR><LF>+CLIENTSTATUS:<socket>,CONNECT,TCP,<send-buffer-size><CR><LF
>
Or
<CR><LF>+CLIENTSTATUS:Error 1<CR><LF>
<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,2048
A TCP connection has been set up with
the socket 0 client and the buffer size is
2048 bytes.
AT+CLIENTSTATUS=1
+CLIENTSTATUS:Error 1
The connection does not exist.
Remarks
N/A

Table of Contents

Related product manuals