User Manual

! ! " !
Espressif Systems
ESP8266
AT Command Examples
5. Multiple Connection as TCP Server
When ESP8266 is working as a TCP server, a multiple of connections shall be maintained. That is to
say, there should be more than one client connecting to ESP8266.
Here is an example showing how TCP server is realized when ESP8266 is working in softAP mode:
Set WiFi mode :
AT+CWMODE=3 // softAP+station mode
Response :OK
Enable multIPle connection:
AT+CIPMUX=1
Response :OK
Setup server:
AT+CIPSERVER=1 // default port = 333
Response :OK
Connect PC to ESP8266 soft-AP
Using a network tool on PC to create a TCP client and connect to ESP8266.
Espressif Systems Confidential / Friday, Oct 23, 201514 16