N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
58
7 TCP Data Service
7.1 Setting Up TCP Link: +TCPSETUP
Description
To set up a TCP link
Format
AT+TCPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 4
<ip>: Destination IP address, in xx.xx.xx.xx or domain name format
<port>: Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+TCPSETUP=0,220.199.66.56,6800
OK
+TCPSETUP:0,OK
The link to 220.199.66.56,6800 is
successfully set up on socket 0.
AT+TCPSETUP=0,neowayjsr.oicp.net,60
010
OK
+TCPSETUP:0,OK
The
connection
to
neowayjsr.oicp.net,60010 is set up on
socket 0 successfully.
+TCPCLOSE:0,Link Closed
The link is closed.
AT+TCPSETUP=1,192.168.20.6,7000
OK
+TCPSETUP: 1,FAIL
Fails to set up the connection to
192.168.20.6,7000 on socket 1. The
server is probably not started, the IP
address is incorrect, or the SIM card
is out of credit.
AT+TCPSETUP=0,neowayjsr.oicp.net,60
010
+TCPSETUP:0,ERROR1
A TCP/UDP link has been set up on
socket 0.
AT+TCPSETUP=5,192.168.20.6,7000
+TCPSETUP:ERROR
The socket number is incorrect.
AT+TCPSETUP=0.58.60.184.213.10012
The punctuations in the command are
incorrect.
Содержание N11 V2
Страница 1: ...N11 V2 AT Command Manual Issue 1 0 Date 2018 10 19 Neoway Product Document...
Страница 15: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 7 OK Remarks The default status setting is 7...
Страница 129: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 121 not support proactive time issuing...
Страница 134: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 126...