!
5.2.3.
AT+CIPSTART—Establishes TCP Connection, UDP Transmission or SSL Connection
Set
Command
Response
Parameters
Examples
Set
Command
Response
Espressif
Single TCP connection (AT+CIPMUX=0):
AT+CIPSTART=<type>,<remote IP>,<remote
port>[,<TCP keep alive>]
OK
or
ERROR
<link ID>: ID of network connection (0~4), used for multiple connections.
•
<type>: string parameter indicating the connection type: "TCP", "UDP" or "SSL".
•
<remote IP>: string parameter indicating the remote IP address.
•
<remote port>: the remote port number.
•
[<TCP keep alive>]: detection time interval when TCP is kept alive; this function is disabled by
•
default.
‣ 0: disable TCP keep-alive.
‣ 1 ~ 7200: detection time interval; unit: second (s).
AT+CIPSTART="TCP","iot.espressif.cn",8000
AT+CIPSTART="TCP","192.168.101.110",1000
For more information please see Chapter 7: AT Command Examples.
Single connection (AT+CIPMUX=0):
AT+CIPSTART=<type>,<remote IP>,<remote port>[,
(<UDP local port>),(<UDP mode>)]
OK
or
ERROR
If TCP is already connected, the response is:
ALREADY CONNECT
Establish TCP Connection
Multiple TCP Connections (AT+CIPMUX=1):
AT+CIPSTART=<link ID>,<type>,<remote
IP>,<remote port>[,<TCP keep alive>]
Establish UDP Transmission
Multiple connections (AT+CIPMUX=1):
AT+CIPSTART=<link ID>,<type>,<remote
IP>,<remote port>[,(<UDP local port>),
(<UDP mode>)]
24 53
!
/!
5. TCP/IP-Related AT Commands
2017.02
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers