Espressif Systems
!
!
2.
AT+CIPSTART – Start connection
AT+CIPSTART – Establish TCP connection or register UDP port, start connection
Example
Command
Response
Parameters
Single connection
Multiple connection
Response
Parameters
Espressif Systems Confidential
!
AT+CIPSTART="TCP","192.168.101.110",1000
Refer to "Espressif AT Command Examples"
AT+CIPSTART=?
1) If
AT+CIPMUX=0
+CIPSTART:(<type>),(<IP address>),(<port>)[ ,(<local port>),
(<mode>)]
+CIPSTART:(<type>),(<domain name>),(<port>)[ ,(<local port>),
(<mode>)]
OK
2) If
AT+CIPMUX=1
+CIPSTART:(link ID),(<type>),(<IP address>),(<port>)[ ,(<local
port>),(<mode>)]
+CIPSTART: (link ID), (<type>),(<domain name>),(<port>)[ ,
(<local port>),(<mode>)]
null
(+CIPMUX=0)
AT+CIPSTART=<type>,<remote IP>,<remote port>[,<UDP local
port>,<UDP mode>][,<TCP keep alive>]
(+CIPMUX=1)
AT+CIPSTART=<link ID>,<type>,<remote IP>,<remote port>[,<UDP
local port>,<UDP mode>][,<TCP keep alive>]
OK
or
ERROR
If connection already exists, returns
ALREAY CONNECT
<link ID>
ID of the connection (0~4), for multi-connect
<type>
string, "TCP" or "UDP"
<remote IP>
string, remote IP
<remote port>
string, remote port
[<UDP local port>]
[<UDP mode>] In UDP transparent transmission, it has to be 0.
[<UDP mode>] 0
: destination peer entity of UDP will not
change.
[<UDP mode>] 1
: destination peer entity of UDP can change
once.
[<UDP mode>] 2
: destination peer entity of UDP is allowed to
change.
Note: [<UDP mode>] can only be used when [<UDP local port>] is
set.
[<TCP keep alive>]
[<TCP keep alive>] 0
[<TCP keep alive>] 1 ~ 7200
for UDP only
default 0. unit: 500 milliseconds.
: disable TCP keep-alive
: TCP keep-alive interval
42 54
/
ESP8266
AT Instruction Set
Friday, May 22, 2015
Need help?
Do you have a question about the ESP8266 and is the answer not in the manual?
Questions and answers