!
5.2.9.
AT+CIPSERVER—Deletes/Creates TCP Server
Set Command
Response
Parameters
Notes
5.2.10. AT+CIPMODE—Configures the Transmission Mode
Commands
Response
Parameters
Notes
Example
Espressif
AT+CIPSERVER=<mode>[,<port>]
OK
•
<mode>
:
‣ 0
: delete server.
‣ 1
: create server.
•
<port>
: port number; 333 by default.
•
A TCP server can only be created when multiple connections are activated (AT+CIPMUX=1).
A server monitor will automatically be created when the TCP server is created.
•
•
When a client is connected to the server, it will take up one connection and be assigned an ID.
Query Command:
AT+CIPMODE?
Function: to obtain information about transmission
mode.
+CIPMODE:<mode>
OK
<mode>
:
‣ 0
: normal transmission mode.
‣ 1
: UART-Wi-Fi passthrough mode (transparent transmission), which can only be enabled in TCP
single connection mode or in UDP mode when the remote IP and port do not change.
The configuration changes will NOT be saved in flash.
•
•
During the UART-Wi-Fi passthrough transmission, if the TCP connection breaks, ESP32 will keep
trying to reconnect until +++ is input to exit the transmission. If it is a normal TCP transmission and the
TCP connection breaks, ESP32 will give a prompt and will not attempt to reconnect.
AT+CIPMODE=1
Set Command:
AT+CIPMODE=<mode>
Function: to set the transmission mode.
OK
29 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