Espressif Systems ESP32 Instruction Set page 34

At instruction set and examples
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
Response
Parameters
Messages
Example
Set
Command
Response
Parameters
Messages
Espressif
OK
<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>: remote port number.
[<UDP local port>]: optional. It is the UDP port of ESP32.
[<UDP mode>] (optional parameter): the entity of UDP transmission. For UDP transparent
transmission, the value of this parameter has to be 0.
‣ 0: the destination peer entity of UDP will not change; this is the default setting.
‣ 1: the destination peer entity of UDP will change once.
‣ 2: the destination peer entity of UDP is allowed to change.
⚠ Notice:
To use <UDP mode> , <UDP local port> must be set first.
// If the UDP transmission is established, a message appears as below
[<link ID>,] CONNECT
// If the UDP transmission ends, a message appears as below
[<link ID>,] CLOSED
AT+CIPSTART="UDP","192.168.101.110",1000,1002,2
For more information please see Chapter 9: AT Command Examples.
Establish SSL Connection
AT+CIPSTART=[<link ID>,]<type>,<remote IP>,<remote port>[,<TCP keep alive>]
OK
<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>] (optional parameter): detection time interval when TCP is kept alive.
This function is disabled by default. Users are recommended to enable this function when
establishing a TCP
‣ 0: disable the TCP keep-alive function.
‣ 1 ~ 7200: detection time interval, unit: second (s).
// If the SSL connection is established, a message appears as below
[<link ID>,] CONNECT
// If the SSL connection ends, a message appears as below
[<link ID>,] CLOSED
28 97
!
5. TCP/IP-Related AT Commands
/!
2019.06

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Table of Contents