Data Sheet
!
4. Wi-Fi AT Commands
4.2.22. AT+CIPSTAMAC_DEF—Sets the MAC Address of the ESP8266 Station; Configuration Saved
in the Flash
4.2.23. AT+CIPAPMAC—Sets the MAC Address of the ESP8266 SoftAP
[@deprecated] This command is deprecated. Please use AT+CIPAPMAC_CUR or AT+CIPAPMAC_DEF
instead.
Response
+CIPSTAMAC_CUR:<mac>
OK
OK
Parameters
<mac>: string parameter, MAC address of the ESP8266 Station.
Notes
• The configuration changes will NOT be saved in the flash.
• The MAC address of ESP8266 SoftAP is different from that of the ESP8266 Station. Please make sure
that you do not set the same MAC address for both of them.
• Bit 0 of the ESP8266 MAC address CANNOT be 1. For example, a MAC address can be “18:…” but
not “15:…”.
Example
AT+CIPSTAMAC_CUR="18:fe:35:98:d3:7b"
Commands
Query Command:
AT+CIPSTAMAC_DEF?
Set Command:
AT+CIPSTAMAC_DEF=<mac>
Function: to set the MAC address of the ESP8266 Station.
Response
+CIPSTAMAC_DEF:<mac>
OK
OK
Parameters
<mac>: string parameter, MAC address of the ESP8266 Station.
Notes
• The configuration changes will be saved in the user parameter area in the flash.
• The MAC address of ESP8266 SoftAP is different from that of the ESP8266 Station. Please make sure
that you do not set the same MAC address for both of them.
• Bit 0 of the ESP8266 MAC address CANNOT be 1. For example, a MAC address can be “18:…” but
not “15:…”.
Example
AT+CIPSTAMAC_DEF="18:fe:35:98:d3:7b"
Commands
Query Command:
AT+CIPAPMAC?
Function: to obtain the MAC address of the
ESP8266 SoftAP.
Set Command:
AT+CIPAPMAC=<mac>
Function: to set the MAC address of the ESP8266
SoftAP.
Response
+CIPAPMAC:<mac>
OK
OK
Parameters
<mac>: string parameter, MAC address of ESP8266 SoftAP.
Espressif
! /5233
2017.05