!
7.
Herein we introduce some examples of how to use Espressif's AT Commands.
7.1. ESP32 as a TCP Client in Single Connection
1. Set the Wi-Fi mode:
AT+CWMODE=3 // SoftAP+Station mode
Response:
OK
2. Connect to the router:
AT+CWJAP="SSID","password" // SSID and password of router
Response:
OK
3. Query the device's IP:
AT+CIFSR
Response:
192.168.3.106 // device got an IP from router
4. Connect the PC to the same router which ESP32 is connected to. Use a network tool on the PC to
create a TCP server.
Espressif
AT Commands Examples
!
35 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