Instructions

" " ! "
Espressif Systems
ESP8266
AT Instruction Set
3.
AT+CIPSTART – Establish TCP connection, UDP transmission or SSL connection
Refer to documentation "4B-ESP8266__AT Command Examples" for more on how to use this
command.!
AT+CIPSTART – Function 1: Establish TCP connection
Example
AT+CIPSTART="TCP", "iot.espressif.cn", 8000
AT+CIPSTART="TCP", "192.168.101.110", 1000
Single connection
(AT+CIPMUX=0)
AT+CIPSTART=
<type>, <remote IP>, <remote port>[, <TCP keep alive>]
Multiple connection
(AT+CIPMUX=1)
AT+CIPSTART=<link ID>,
<type>, <remote IP>, <remote port>[, <TCP keep alive>]
Response
OK or ERROR
If TCP is already connected, returns
ALREADY CONNECT
Parameters
<link ID> ID of network connection (0~4), used for multi-connection
<type> string, "TCP" or "UDP"
<remote IP> string, remote IP address
<remote port> string, remote port number
[<TCP keep alive>] optional, detection time interval when TCP is kept alive,
this function is closed by default.
0 : disable TCP keep-alive
1 ~ 7200 : detection time interval, unit: second
AT+CIPSTART – Function 2: Register UDP port
Example
AT+CIPSTART="UDP", "192.168.101.110", 1000, 1002, 2
Single connection
(AT+CIPMUX=0)
AT+CIPSTART=<type>, <remote IP>, <remote port>[, <UDP local port>,
<UDP mode>]
Multiple connection
(AT+CIPMUX=1)
AT+CIPSTART=<link ID>, <type>, <remote IP>, <remote port>[, <UDP local
port>, <UDP mode>]
Response
OK or ERROR
If connection already exists, returns
ALREADY CONNECT
Espressif Systems / Friday, July 15, 201655 73