Data Sheet

!
5. TCP/IP-Related AT Commands
5.2.14. AT+CIPSERVER—Deletes/Creates TCP Server
5.2.15. AT+CIPMODE—Sets Transmission Mode
Notes
The default mode is single connection mode.
Multiple connections can only be set when transparent transmission is disabled (AT+CIPMODE=0).
This mode can only be changed after all connections are disconnected.
If the TCP server is running, it must be deleted (AT+CIPSERVER=0) before the single connection mode is
activated.
Example
AT+CIPMUX=1
Set Command
AT+CIPSERVER=<mode>[,<port>]
Response
OK
Parameters
<mode>:
0: deletes server.
1: creates server.
<port>: port number; 333 by default.
Notes
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.
Example
AT+CIPMUX=1
AT+CIPSERVER=1,1001
Commands
Query Command:
AT+CIPMODE?
Function: to obtain information about transmission
mode.
Set Command:
AT+CIPMODE=<mode>
Function: to set the transmission mode.
Response
+CIPMODE:<mode>
OK
OK
Parameters
<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.
Notes
The configuration changes will NOT be saved in flash.
During the UART-Wi-Fi passthrough transmission, if the TCP connection breaks, ESP8266 will keep
trying to reconnect until +++ is input to exit the transmission. If it is a normal TCP transmission and the
TCP connection breaks, ESP8266 will give a prompt and will not attempt to reconnect.
Example
AT+CIPMODE=1
Espressif
! /!50 58
2017.05