WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
141
ERROR
Yes
No
No
Yes
Yes
No
DISCONNECT
CONNECT
+TCPSETUP:0,OK
ERROR
A PPP link is set up
successfully
AT+TCPSETUP=0,220.199.66.56,6800\r
AT+TCPCLOSE=0\r
AT+IPSTATUS=0\r
AT+TCPSEND=0,10\r
Return ">"
Send more data?
AT+TCPCLOSE=0\r
Return "+TCPCLOSE:0,OK"
End
If socket 0 has been opened, close it first.
Use socket 0 to set up a TCP link. The server
IP address is 220.199.66.56 and the port ID is
6800.
Query socket 0 link.
+IPSTATUS:0,CONNECT,TCP,4096;
Indicates the TCP link is set up successfully.
Socket 0 sends 10-byte data.
0123456789\r
1. When the module returns
>
, send data to
the UART.
2. The data should end with \r, which is
0x0D in hexadecimal system.
Close socket 0.