!
4.2.11. AT+CIPSTAMAC—Sets the MAC Address of the ESP32 Station
Commands
Response
Parameters
Notes
Example
4.2.12. AT+CIPAPMAC—Sets the MAC Address of the ESP32 SoftAP
Commands
Response
Parameters
Notes
Example
Espressif
Query Command:
AT+CIPSTAMAC?
+CIPSTAMAC:<mac>
OK
<mac>: string parameter, MAC address of the ESP8266 Station.
The configuration changes will be saved in the NVS area.
•
The MAC address of ESP32 SoftAP is different from that of the ESP32 Station. Please make sure that
•
you do not set the same MAC address for both of them.
Bit 0 of the ESP32 MAC address CANNOT be 1. For example, a MAC address can be "1a:..." but not
•
"15:...".
FF:FF:FF:FF:FF:FF and 00:00:00:00:00:00 are invalid MAC and cannot be set.
•
AT+CIPSTAMAC="18:fe:35:98:d3:7b"
Query Command:
AT+CIPAPMAC?
Function: to obtain the MAC address of the ESP32
SoftAP.
+CIPAPMAC:<mac>
OK
<mac>: string parameter, MAC address of ESP32 SoftAP.
•
The configuration changes will be saved in the NVS area.
The MAC address of ESP32 SoftAP is different from that of the ESP32 Station. Please make sure you
•
do not set the same MAC address for both of them.
•
Bit 0 of the ESP32 MAC address CANNOT be 1. For example, a MAC address can be "18:..." but not
"15:...".
•
FF:FF:FF:FF:FF:FF and 00:00:00:00:00:00 are invalid MAC and cannot be set.
AT+CIPAPMAC="1a:fe:36:97:d5:7b"
Set Command:
AT+CIPSTAMAC=<mac>
Function: to set the MAC address of the ESP32 Station.
OK
Set Command:
AT+CIPAPMAC=<mac>
Function: to set the MAC address of the ESP32
SoftAP.
OK
18 53
!
/!
4. Wi-Fi AT Commands
2017.02
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers