EasyManua.ls Logo

Neoway N11 V2 - Sending TCP Data (+TCPSEND)

Neoway N11 V2
134 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...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
59
+TCPSETUP:ERROR
AT+TCPSET=0,58.60.184.213,10012
ERROR
The AT command is not complete.
Remarks
Use the AT+XIIC=1 command to set up a PPP link before running this command.
7.2 Sending TCP Data: +TCPSEND
Description
To send TCP data
The module will return> after this command is sent. Send TCP data 50 ms to 100
ms later.
Format
AT+TCPSEND=<n>,<length><CR>
Parameter
<n>: Socket number, ranging from 0 to 4. A TCP link is established on the socket.
<length>:The length of the data to be sent, ranging from 1 to 2048, unit: byte.
Return Value
See the Example.
Example
AT+TCPSEND=0,1
>
OK
+TCPSEND:0,1
1-byte data is successfully sent
through socket 0.
AT+TCPSEND=0,1024
>
+TCPSEND:ERROR
Network congestion occurs when
1024-byte data is sent. Only some
data is sent successfully.
AT+TCPSEND=0,10
>
+TCPSEND:0,OPERATION EXPIRED
After the data sending command is
input and > is returned, no more data
is entered in one minute. Then the
expiration information is displayed.
AT+TCPSEND=0,1
+TCPSEND:SOCKET ID OPEN FAILED
One-byte data fails to be sent on
socket 0 because the link is not
established.
AT+TCPSEND=0,4097
+TCPSEND:DATA LENGTH ERROR
4097-byte data fails to be sent on
socket 0 because data length exceeds
the limit.
AT+TCPSEND=0
21-byte data is successfully sent

Table of Contents

Related product manuals