At+Cipsta-Sets The Ip Address Of The Esp32 Station; At+Cipap-Sets The Ip Address Of The Esp32 Softap - Espressif ESP32 At Instruction Set

Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
4.2.13. AT+CIPSTA—Sets the IP Address of the ESP32 Station
Commands
Response
Parameters
Notes
Example
4.2.14. AT+CIPAP—Sets the IP Address of the ESP32 SoftAP
Commands
Response
Parameters
Notes
Example
Espressif
Query Command:
AT+CIPSTA?
Function: to obtain the IP address of the ESP32
SoftAP.
+CIPSTA:<ip>
OK
⚠ Notice:
Only when the ESP32 Station is connected to an AP
can its IP address be queried.
The configuration changes will be saved in the NVS area.
The set command interacts with DHCP-related AT commands (AT+CWDHCP-related commands):
‣ If static IP is enabled, DHCP will be disabled;
‣ If DHCP is enabled, static IP will be disabled;
‣ Whether it is DHCP or static IP that is enabled depends on the last configuration.
AT+CIPSTA="192.168.6.100","192.168.6.1","255.255.255.0"
Query Command:
AT+CIPAP?
Function: to obtain the IP address of the ESP32
SoftAP.
+CIPAP:<ip>,<gateway>,<netmask>
OK
<ip>: string parameter, the IP address of the ESP32 SoftAP.
[<gateway>]: gateway.
[<netmask>]: netmask.
The configuration changes will be saved in the NVS area.
Currently, ESP32 only supports class C IP addresses.
The set command interacts with DHCP-related AT commands (AT+CWDHCP-related commands):
‣ If static IP is enabled, DHCP will be disabled;
‣ If DHCP is enabled, static IP will be disabled;
‣ Whether it is DHCP or static IP that is enabled depends on the last configuration.
AT+CIPAP="192.168.5.1","192.168.5.1","255.255.255.0"
Set Command:
AT+CIPSTA=<ip>,[,<gateway>,<netmask>]
Function: to set the IP address of the ESP32
SoftAP.
OK
<ip>: string parameter, the IP address of the
ESP32 Station.
[<gateway>]: gateway.
[<netmask>]: netmask.
Set Command:
AT+CIPAP=<ip>,[,<gateway>,<netmask>]
Function: to set the IP address of the ESP32
SoftAP.
OK
!
19 53
/!
4. Wi-Fi AT Commands
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