Data Sheet

!
4. Wi-Fi AT Commands
4.2.19. AT+CWAUTOCONN—Auto-Connects to the AP or Not
4.2.20. AT+CIPSTAMAC—Sets the MAC Address of the ESP8266 Station
[@deprecated] This command is deprecated. Please use AT+CIPSTAMAC_CUR or AT+CIPSTAMAC_DEF
instead.
4.2.21. AT+CIPSTAMAC_CUR—Sets the MAC Address of the ESP8266 Station; Configuration Not
Saved in the Flash
Examples
AT+CWDHCPS_DEF=1,3,"192.168.4.10","192.168.4.15"
or
AT+CWDHCPS_DEF=0󰐇//Disable󰐇the󰐇settings󰐇and󰐇use󰐇the󰐇default󰐇IP󰐇range.
Set Command
AT+CWAUTOCONN=<enable>
Response
OK
Parameters
<enable>:
0: does NOT auto-connect to AP on power-up.
1: connects to AP automatically on power-up.
The ESP8266 Station connects to the AP automatically on power-up by default.
Note
The configuration changes will be saved in the system parameter area in the flash.
Example
AT+CWAUTOCONN=1
Commands
Query Command:
AT+CIPSTAMAC?
Set Command:
AT+CIPSTAMAC=<mac>
Function: to set the MAC address of the ESP8266 Station.
Response
+CIPSTAMAC:<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="18:fe:35:98:d3:7b"
Commands
Query Command:
AT+CIPSTAMAC_CUR?
Set Command:
AT+CIPSTAMAC_CUR=<mac>
Function: to set the MAC address of the ESP8266 Station.
Espressif
! /5232
2017.05