At Commands Examples; Esp32 As A Tcp Client In Single Connection - Espressif ESP32 At Instruction Set

Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents