Commands; At+Cipstatus-Gets The Connection Status; At+Cipdomain-Dns Function; At+Cipdns-Sets User-Defined Dns Servers; Configuration Saved In The Flash - Espressif Systems ESP32 Instruction Set

At instruction set and examples
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!

5.2. Commands

5.2.1.
AT+CIPSTATUS—Gets the Connection Status
Execute
Command
Response
Parameters
5.2.2.
AT+CIPDOMAIN—DNS Function
Execute
Command
Response
Parameter
Example
5.2.3.
AT+CIPDNS—Sets User-defined DNS Servers; Configuration Saved in the Flash
Command
s
Response
Espressif
AT+CIPSTATUS
STATUS:<stat>
+CIPSTATUS:<link ID>,<type>,<remote IP>,<remote port>,<local
port>,<tetype>
<stat>: status of the ESP32 Station interface.
‣ 2: The ESP32 Station is connected to an AP and its IP is obtained.
‣ 3: The ESP32 Station has created a TCP or UDP transmission.
‣ 4: The TCP or UDP transmission of ESP32 Station is disconnected.
‣ 5: The ESP32 Station does NOT connect to an AP.
<link ID>: ID of the connection (0~4), used for multiple connections.
<type>: string parameter, "TCP" or "UDP".
<remote IP>: string parameter indicating the remote IP address.
<remote port>: the remote port number.
<local port>: ESP32 local port number.
<tetype>:
‣ 0: ESP32 runs as a client.
‣ 1: ESP32 runs as a server.
AT+CIPDOMAIN=<domain name>
+CIPDOMAIN:<IP address>
<domain name>: the domain name.
AT+CWMODE=1 // set Station mode
AT+CWJAP="SSID","password" // access to the internet
AT+CIPDOMAIN="iot.espressif.cn" // DNS function
Query Command:
AT+CIPDNS?
Function: Get the user-defined DNS
servers which saved in flash.
+CIPDNS:<DNS server0>
[+CIPDNS:<DNS server1>]
OK
24 97
!
5. TCP/IP-Related AT Commands
Set Command:
AT+CIPDNS=<enable>[,<DNS server0>,<DNS server1>]
Function: Set user-defined DNS servers.
OK
/!
2019.06

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

Table of Contents