User Manual
! ! " !  
 Espressif Systems
ESP8266 
AT Command Examples
3.2.
UDP (remote IP, port can be changed) 
•
Create a UDP transmission, last parameter is “2”. 
 AT+CIPSTART="UDP", "192.168.101.110", 8080, 1112, 2 
 Response :CONNECT OK 
Note : 
"192.168.101.110", 8080 here refer to the remote IP and port of UDP transmission terminal which 
is created on PC in step 4; 
1112 is the local port of ESP8266. User can self-define this port. The value of this port will be random 
if it’s not defined beforehand. 
 2 means the opposite terminal of UDP transmission side will change to be the latest one that has 
been communicating with ESP8266. 
•
Send data: 
 AT+CIPSEND=5 // Send 5 bytes 
 >DGFYQ // enter the data, no CR 
Response :SEND OK 
Note: 
If the number of bytes sent is bigger than the size defined (n), will reply busy, and after sending n 
number of bytes, reply SEND OK. 
•
If you want to send data to any other UDP terminals, please set the IP and port of this terminal. 
 AT+CIPSEND=6, ”192.168.101.111”, 1000 // Send 6 bytes 
 >abcdef // enter the data, no CR 
 Response :SEND OK 
•
Receive data: 
 +IPD, n: xxxxxxxxxx // received n bytes, data=xxxxxxxxxxx 
•
Delete UDP transmission: 
 AT+CIPCLOSE 
 Response :CLOSED OK 
Espressif Systems Confidential  /   Friday, Oct 23, 20159 16










