!
Notes:
"192.168.101.110" and 8080 here refer to the IP and port of the remote UDP transmission terminal which is created on
•
a PC in Section 7.2.1.
1112 is the local port of ESP32. Users can define this port. The value of this parameter will be random if it is not defined
•
beforehand.
2 means the means the opposite terminal of UDP transmission can be changed. The remote IP and port will be
•
automatically changed to those of the last UDP connection to ESP32.
2. Send data:
AT+CIPSEND=5 // send 5 bytes
>DGFYQ // enter the data, no CR
Response:
SEND OK
⚠ Notice:
If the number of bytes sent is bigger than the size defined as n, the response would be busy. After sending the first n
number of bytes, SEND OK will be returned.
3. If you want to send data to any other UDP terminals, please designate the IP and port of the target
terminal in the command.
AT+CIPSEND=6,"192.168.101.111",1000 // send six bytes
>abcdef // enter the data, no CR
Response:
SEND OK
4. Receive data:
+IPD,n:xxxxxxxxxx // received n bytes, data=xxxxxxxxxxx
5. Close UDP transmission:
AT+CIPCLOSE
Response:
CLOSED
OK
7.3. Transparent Transmission
AT Demo supports transparent transmission only when ESP32 works as a TCP client in single
connection or UDP transmission.
7.3.1.
ESP32 as a TCP Client in UART-Wi-Fi Passthrough (Single Connection Mode)
Here is an example of the ESP32 Station working as a TCP client in single connection mode of
transparent transmission.
1. Set the Wi-Fi mode:
Espressif
39 53
!
/!
7. AT Commands Examples
2017.02
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers