ESP8266 AT Instruction Set Version 2.1.
About This Guide This document provides AT commands list based on ESP8266_NONOS_SDK. The document is structured as follows: Chapter Title Content Chapter 1 Overview Provides instructions on user-defined AT commands and downloading of AT firmware. Chapter 2 Command Description Gives a basic description of AT commands. Chapter 3 Basic AT Commands Lists AT commands of basic functions. Chapter 4 Wi-Fi AT Commands Lists Wi-Fi-related AT commands.
⽬目录 1. Overview ................................................................................................................................................1 1.1. User-Defined AT Commands ......................................................................................................................1 1.2. Downloading AT Firmware into the Flash ...................................................................................................2 1.2.1. 4 Mbit Flash ...............................
3.2.18. AT+SYSIOGETCFG—Checks the Working Modes of IO Pins..................................................... 16 3.2.19. AT+SYSGPIODIR—Configures the Direction of a GPIO ............................................................. 16 3.2.20. AT+SYSGPIOWRITE—Configures the Output Level of a GPIO ..................................................17 3.2.21. AT+SYSGPIOREAD—Reads the GPIO Input Level..................................................................... 17 4. Wi-Fi AT Commands ................
4.2.24. AT+CIPAPMAC_CUR—Sets the MAC Address of the ESP8266 SoftAP; Configuration Not Saved in the Flash .......................................................................................................................................34 4.2.25. AT+CIPAPMAC_DEF—Sets the MAC Address of the ESP8266 SoftAP; Configuration Saved in Flash ............................................................................................................................................................34 4.2.26.
5.2.13. AT+CIPMUX—Enable or Disable Multiple Connections ..............................................................49 5.2.14. AT+CIPSERVER—Deletes/Creates TCP Server .......................................................................... 50 5.2.15. AT+CIPMODE—Sets Transmission Mode ...................................................................................50 5.2.16. AT+SAVETRANSLINK—Saves the Transparent Transmission Link in Flash ...............................51 5.2.17.
1. Overview ! 1. Overview This document provides AT commands based on ESP8266_NONOS_SDK and explain how to use them. AT command set is divided into: Basic AT commands, Wi-Fi AT commands, and TCP/IP AT commands. 1.1. User-Defined AT Commands Please use only English letters when naming user-defined AT commands. The AT command name must NOT contain characters or numbers. AT firmware is based on ESP8266_NONOS_SDK. Espressif Systems’ AT commands are provided in libat.
1. Overview ! All the files in folder at should be copied to the folder app in ESP8266_NONOS_SDK if users need to compile the AT firmware. ! For details please refer to ESP8266 Getting Started Guide. 1.2. Downloading AT Firmware into the Flash Please refer to ESP8266_NONOS_SDK/bin/at/readme.txt for instructions on how to download AT firmware into flash. Please use Espressif’s official Flash Download Tools to download the firmware. Make sure you select the corresponding flash size.
1. Overview ! BIN 1.2.3. Address Description blank.bin 0xFB000 Initializes the RF_CAL parameter area. esp_init_data_default.bin 0xFC000 Initializes the RF_CAL parameter area. Stores the default RF parameter values; the BIN has to be downloaded into flash at least once. blank.bin 0x7E000 blank.bin 0xFE000 Initializes the flash user parameter area; for more details please see Appendix. boot.bin 0x00000 In /bin/at user1.1024.new.2.
1. Overview ! BIN 1.2.5. Address Description blank.bin 0x1FE000 Initializes Flash system parameter area, more details in Appendix. boot.bin 0x00000 In /bin/at. user1.2048.new.5.bin 0x01000 In /bin/at/1024+1024. 32 Mbit Flash, Map: 512 KB + 512 KB Use Espressif Flash download tool and select flash size: 32 Mbit. BIN blank.bin esp_init_data_default.bin 1.2.6. Address 0x3FB000 Description Initializes RF_CAL parameter area.
1. Overview ! ⚠ Notes: • Please make sure that correct BIN (/ESP8266_NONOS_SDK/bin/at) is already in the chip (ESP8266) before using the AT commands listed in this document. • AT firmware uses priority levels 0 and 1 of system_os_task, so only one task of priority 2 is allowed to be set up by the user. • AT returns messages below to show status of the ESP8266 Station’s Wi-Fi connection. Espressif ‣ Wi-Fi CONNECTED: Wi-Fi is connected. ‣ Wi-Fi GOT IP: the ESP8266 Station has got the IP from the AP.
2. Command Description ! 2. Command Description Each command set contains four types of AT commands. Type Command Format Description Test Command AT+=? Queries the Set Commands’ internal parameters and their range of values. Query Command AT+? Returns the current value of parameters. AT+=<…> Sets the value of user-defined parameters in commands, and runs these commands. AT+ Runs commands with no user-defined parameters.
3. Basic AT Commands ! 3. 3.1. Basic AT Commands Overview Commands AT Tests AT startup. AT+RST Restarts the module. AT+GMR Checks version information. AT+GSLP Enters Deep-sleep mode. ATE AT+RESTORE AT+UART Configures echoing of AT commands. Restores the factory default settings of the module. UART configuration. [@deprecated] AT+UART_CUR The current UART configuration. AT+UART_DEF The default UART configuration, saved in flash.
3. Basic AT Commands ! 3.2. Commands 3.2.1. AT—Tests AT Startup Execute Command AT Response OK Parameters 3.2.2. - AT+RST—Restarts the Module Execute Command Response OK Parameters 3.2.3. AT+RST - AT+GMR—Checks Version Information Execute Command AT+GMR Response OK • : information about the AT version. Parameters • : information about the SDK version.
3. Basic AT Commands ! 3.2.5. ATE—AT Commands Echoing Execute Command ATE Response OK Parameters Note 3.2.6. • ATE1: Switches echo on. This command ATE is used to trigger command echo. It means that entered commands can be echoed back to the sender when ATE command is used. Two parameters are possible. The command returns OK in normal cases and ERROR when a parameter other than 0 or 1 was specified. AT+RESTORE—Restores the Factory Default Settings Execute Command Response Note 3.2.7.
3. Basic AT Commands ! • : UART baud rate • : data bits ‣ ‣ ‣ ‣ 5: 5-bit data 6: 6-bit data 7: 7-bit data 8: 8-bit data • : stop bits Parameters ‣ 1: 1-bit stop bit ‣ 2: 1.5-bit stop bit ‣ 3: 2-bit stop bit • : parity bit ‣ 0: None ‣ 1: Odd ‣ 2: Even • : flow control ‣ ‣ ‣ ‣ 0: flow control is not enabled 1: enable RTS 2: enable CTS 3: enable both RTS and CTS 1.
3. Basic AT Commands ! 3.2.8. AT+UART_CUR—Current UART Configuration; Not Saved in the Flash Command Set Command: Query Command: AT+UART_CUR=,,,, AT+UART_CUR? Response +UART_CUR:,,,, OK OK Note Command AT+UART_CUR? will return the actual value of UART configuration parameters, which may have allowable errors compared with the set value because of the clock division.
3. Basic AT Commands ! 3.2.9. AT+UART_DEF—Default UART Configuration; Saved in the Flash Command Set Command: Query Command: AT+UART_DEF=,, ,, AT+UART_DEF? Response +UART_DEF:,,,< parity>, OK OK • : UART baud rate • : data bits ‣ ‣ ‣ ‣ 5: 5-bit data 6: 6-bit data 7: 7-bit data 8: 8-bit data • : stop bits Parameter ‣ 1: 1-bit stop bit ‣ 2: 1.
3. Basic AT Commands ! 3.2.10. AT+SLEEP—Configures the Sleep Modes Command Query Command: Set Command: AT+SLEEP? AT+SLEEP= +SLEEP: OK Response or OK ERROR : Parameter Notes Example ‣ 0: disables sleep mode ‣ 1: Light-sleep mode ‣ 2: Modem-sleep mode This command can only be used in Station mode. Modem-sleep is the default sleep mode. AT+SLEEP=0 3.2.11.
3. Basic AT Commands ! • Set ESP8266 to be woken from Light-sleep, when GPIO0 is on low level: AT+WAKEUPGPIO=1,0,0 • Set ESP8266 to be woken from Light-sleep, when GPIO0 is on high level. After the waking- up, GPIO13 is set to high level. Example AT+WAKEUPGPIO=1,0,1,13,1 • Disable the function that ESP8266 can be woken up from Light-sleep by a GPIO. AT+WAKEUPGPIO=0 3.2.12.
3. Basic AT Commands ! 3.2.14. AT+RFAUTOTRACE—Sets RF Frequency Offset Trace Command Response Query Command: Set Command: AT+RFAUTOTRACE? AT+RFAUTOTRACE= +RFAUTOTRACE: OK OK : Parameter ‣ 0: disables RF frequency offset trace ‣ 1: enables RF frequency offset trace • The RF frequency offset trace function is enabled by default. Notes • This configuration will be saved in the user parameter area in flash, and take effect after the chip restarts.
3. Basic AT Commands ! 3.2.17. AT+SYSIOSETCFG—Configures IO Working Mode Set Command Response AT+SYSIOSETCFG=,, OK • : number of an IO pin • : the working mode of the IO pin Parameter • ‣ 0: disable the pull-up ‣ 1: enable the pull-up of the IO pin Note Example Please refer to ESP8266 Pin List for uses of AT+SYSIO-related commands. AT+SYSIOSETCFG=12,3,1 //Set GPIO12 to work as a GPIO 3.2.18.
3. Basic AT Commands ! Example AT+SYSIOSETCFG=12,3,1 AT+SYSGPIODIR=12,0 //Set GPIO12 to work as a GPIO //Set GPIO12 to work as an input 3.2.20.
3. Basic AT Commands ! Note Please refer to ESP8266 Pin List for uses of AT+SYSGPIO-related commands. AT+SYSIOSETCFG=12,3,1 Example AT+SYSGPIODIR=12,0 //Set GPIO12 to work as a GPIO //Set GPIO12 to work as an input AT+SYSGPIOREAD=12 Espressif ! /58 18 2017.
4. Wi-Fi AT Commands ! 4. 4.1. Wi-Fi AT Commands Overview Commands AT+CWMODE Sets the Wi-Fi mode (Station/AP/Station+AP). [@deprecated] AT+CWMODE_CUR Sets the Wi-Fi mode (Station/AP/Station+AP); configuration not saved in the flash. AT+CWMODE_DEF Sets the default Wi-Fi mode (Station/AP/Station+AP); configuration saved in the flash. AT+CWJAP Connect to an AP. [@deprecated] AT+CWJAP_CUR Connects to an AP; configuration not saved in the flash.
4. Wi-Fi AT Commands ! AT+CIPAPMAC AT+CIPAPMAC_CUR Sets the MAC address of the ESP8266 SoftAP; configuration not saved in the flash. AT+CIPAPMAC_DEF Sets the MAC address of the ESP8266 SoftAP; configuration saved in the flash. AT+CIPSTA Sets the IP address of the ESP8266 Station. [@deprecated] AT+CIPSTA_CUR Sets the IP address of the ESP8266 Station; configuration not saved in the flash. AT+CIPSTA_DEF Sets the IP address of the ESP8266 Station; configuration saved in the flash.
4. Wi-Fi AT Commands ! 4.2. Commands 4.2.1. AT+CWMODE—Sets the Wi-Fi Mode (Station/SoftAP/Station+SoftAP) [@deprecated] This command is deprecated. Please use AT+CWMODE_CUR or AT+CWMODE_DEF instead. Commands Response Query Command: Set Command: Test Command: AT+CWMODE? AT+CWMODE= AT+CWMODE=? Function: to query the current Wi-Fi mode of ESP8266. Function: to set the current Wi-Fi mode of ESP8266. +CWMODE: +CWMODE: OK OK OK : Parameters Note Example 4.2.2.
4. Wi-Fi AT Commands ! : Parameters Note Example 4.2.4. ‣ 1: Station mode ‣ 2: SoftAP mode ‣ 3: SoftAP+Station mode The configuration changes will be saved in the system parameter area in the flash. AT+CWMODE_DEF=3 AT+CWJAP—Connects to an AP [@deprecated] This command is deprecated. Please use AT+CWJAP_CUR or AT+CWJAP_DEF instead. Commands Query Command: Set Command: AT+CWJAP? AT+CWJAP=,[,] Function: to query the AP to which the ESP8266 Station is already connected.
4. Wi-Fi AT Commands ! 4.2.5. AT+CWJAP_CUR—Connects to an AP; Configuration Not Saved in the Flash Commands Query Command: Set Command: AT+CWJAP_CUR? AT+CWJAP_CUR=,[,] Function: to query the AP to which the ESP8266 Station is already connected. Function: to set the AP to which the ESP8266 Station needs to be connected. OK Response +CWJAP_CUR:,,, or OK +CWJAP_CUR: ERROR • : the SSID of the target AP.
4. Wi-Fi AT Commands ! • : the SSID of the target AP. • : password, MAX: 64-byte ASCII. • []: the target AP’s MAC address, used when multiple APs have the same SSID. • : (for reference only) Parameters : a string parameter showing the SSID of the target AP. ‣ ‣ ‣ ‣ 1: connection timeout. 2: wrong password. 3: cannot find the target AP. 4: connection failed. This command requires Station mode to be active.
4. Wi-Fi AT Commands ! 4.2.7. AT+CWLAPOPT—Sets the Configuration for the Command AT+CWLAP Set Command AT+CWLAPOPT=, OK Response or ERROR • : determines whether the result of command AT+CWLAP will be listed according to RSSI: ‣ 0: the result is ordered according to RSSI. ‣ 1: the result is not ordered according to RSSI.
4. Wi-Fi AT Commands ! 4.2.8. AT+CWLAP—Lists Available APs Set Command: Commands Execute Command: AT+CWLAP=[,,] Function: to query the APs with specific SSID and MAC on a specific channel. +CWLAP:,,,,,, Response AT+CWLAP Function: to list all available APs. OK +CWLAP: ,,,,,, or OK ERROR • : encryption method.
4. Wi-Fi AT Commands ! 4.2.10. AT+CWSAP—Configures the ESP8266 SoftAP [@deprecated] This command is deprecated. Please use AT+CWSAP_CUR or AT+CWSAP_DEF instead. Commands Query Command: Set Command: AT+CWSAP? AT+CWSAP=,,,[,][,] Function: to obtain the configuration parameters of the ESP8266 SoftAP. Function: to configure the ESP8266 SoftAP.
4. Wi-Fi AT Commands ! • : string parameter, SSID of AP. • : string parameter, length of password: 8 ~ 64 bytes ASCII. • : channel ID. • : encryption method; WEP is not supported. ‣ 0: OPEN Parameters ‣ 2: WPA_PSK ⚠ Notice: ‣ 3: WPA2_PSK This command is only available when SoftAP is active. ‣ 4: WPA_WPA2_PSK • [] (optional): maximum number of Stations to which ESP8266 SoftAP can be connected; within the range of [1, 10].
4. Wi-Fi AT Commands ! 4.2.13. AT+CWLIF—IP of Stations to Which the ESP8266 SoftAP is Connected Execute Command Response Parameters Note AT+CWLIF , OK • : IP address of Stations to which ESP8266 SoftAP is connected. • : MAC address of Stations to which ESP8266 SoftAP is connected. This command cannot get a static IP. It only works when both DHCPs of the ESP8266 SoftAP, and of the Station to which ESP8266 is connected, are enabled. 4.2.14.
4. Wi-Fi AT Commands ! • : • Bit0: Parameters ‣ 0: Sets ESP8266 SoftAP ‣ 1: Sets ESP8266 Station ‣ 2: Sets both SoftAP and Station ‣ 0: Station DHCP is disabled. ‣ 1: Station DHCP is enabled. • Bit1: • : ‣ 0: SoftAP DHCP is disabled. ‣ 1: SoftAP DHCP is enabled. ‣ 0: Disables DHCP ‣ 1: Enables DHCP • The configuration changes will be stored in the user parameter area in the flash.
4. Wi-Fi AT Commands ! 4.2.17. AT+CWDHCPS_CUR—Sets the IP Address Allocated by ESP8266 SoftAP DHCP; Configuration Not Saved in Flash Set Command: Commands AT+CWDHCPS_CUR=,,, Query Command: AT+CWDHCPS_CUR? Response Function: sets the IP address range of the ESP8266 SoftAP DHCP server. +CWDHCPS_CUR=,, OK • : Parameters ‣ 0: Disable the settings and use the default IP range.
4. Wi-Fi AT Commands ! AT+CWDHCPS_DEF=1,3,"192.168.4.10","192.168.4.15" Examples or AT+CWDHCPS_DEF=0 //Disable the settings and use the default IP range. 4.2.19. AT+CWAUTOCONN—Auto-Connects to the AP or Not Set Command Response AT+CWAUTOCONN= OK : Parameters ‣ 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.
4. Wi-Fi AT Commands ! Response +CIPSTAMAC_CUR: OK OK Parameters : string parameter, MAC address of the ESP8266 Station. • The configuration changes will NOT be saved in the flash. Notes • 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:…”.
4. Wi-Fi AT Commands ! • The configuration changes will be saved in the user parameter area in the flash. Notes • The MAC address of ESP8266 SoftAP is different from that of the ESP8266 Station. Please make sure 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+CIPAPMAC="1a:fe:36:97:d5:7b" 4.2.24.
4. Wi-Fi AT Commands ! 4.2.26. AT+CIPSTA—Sets the IP Address of the ESP8266 Station [@deprecated] This command is deprecated. Please use AT+CIPSTA_CUR or AT+CIPSTA_DEF instead. Commands Response Query Command: Set Command: AT+CIPSTA? AT+CIPSTA=[,,] Function: to obtain the IP address of the ESP8266 Station. Function: to set the IP address of the ESP8266 Station. +CIPSTA: OK OK • : string parameter, the IP address of the ⚠ Notice: Parameters ESP8266 Station.
4. Wi-Fi AT Commands ! 4.2.28. AT+CIPSTA_DEF—Sets the IP Address of the ESP8266 Station; Configuration Saved in the Flash Commands Response Query Command: Set Command: AT+CIPSTA_DEF? AT+CIPSTA_DEF=[,,] Function: to obtain the IP address of the ESP8266 Station. Function: to set the IP address of the ESP8266 Station. +CIPSTA_DEF: OK OK • : string parameter, the IP address of the ⚠ Notice: Parameters ESP8266 Station.
4. Wi-Fi AT Commands ! 4.2.30. AT+CIPAP_CUR—Sets the IP Address of the ESP8266 SoftAP; Configuration Not Saved in the Flash Commands Response Query Command: Set Command: AT+CIPAP_CUR? AT+CIPAP_CUR=[,,] Function: to obtain the IP address of the ESP8266 SoftAP. Function: to set the IP address of the ESP8266 SoftAP. +CIPAP_CUR:,, OK OK • : string parameter, the IP address of the ESP8266 SoftAP. Parameters • []: gateway.
4. Wi-Fi AT Commands ! 4.2.32. AT+CWSTARTSMART—Starts SmartConfig Commands Execute Command: Set Command: AT+CWSTARTSMART AT+CWSTARTSMART= Function: to start SmartConfig. (The type of Function: to start SmartConfig of a designated type. SmartConfig is ESP-TOUCH + AirKiss.) Response OK : Parameters ‣ 1: ESP-TOUCH ‣ 2: AirKiss ‣ 3: ESP-TOUCH+AirKiss • For details on SmartConfig please see ESP-TOUCH User Guide. • SmartConfig is only available in the ESP8266 Station mode.
4. Wi-Fi AT Commands ! 4.2.34. AT+CWSTARTDISCOVER—Enables the Mode that ESP8266 can be Found by WeChat Set Command Response AT+CWSTARTDISCOVER=,,
4. Wi-Fi AT Commands ! 4.2.37. AT+MDNS—Configures the MDNS Function Set Command AT+MDNS=,,, OK Response or ERROR • : ‣ 1: enables the MDNS function; the following three parameters need to be set. Parameters ‣ 0: disables the MDNS function; the following three parameters need not to be set. • : MDNS host name • : MDNS server name • : MDNS server port • Please do not use special characters (such as .
5. TCP/IP-Related AT Commands ! 5. 5.1.
5. TCP/IP 相关 AT 指令 ! 5.2. Commands 5.2.1. AT+CIPSTATUS—Gets the Connection Status Execute Command Response AT+CIPSTATUS STATUS: +CIPSTATUS:,,,,, • : status of the ESP8266 Station interface. ‣ ‣ ‣ ‣ 2: The ESP8266 Station is connected to an AP and its IP is obtained. 3: The ESP8266 Station has created a TCP or UDP transmission. 4: The TCP or UDP transmission of ESP8266 Station is disconnected.
5. TCP/IP-Related AT Commands ! 5.2.3.
5. TCP/IP-Related AT Commands ! • : ID of network connection (0~4), used for multiple connections. • : string parameter indicating the connection type: "TCP", "UDP" or "SSL". • : string parameter indicating the remote IP address. • : remote port number. • []: optional; UDP port of ESP8266. Parameters • []: optional. In the UDP transparent transmission, the value of this parameter has to be 0.
5. TCP/IP-Related AT Commands ! 5.2.4. AT+CIPSSLSIZE—Sets the Size of SSL Buffer Set Command AT+CIPSSLSIZE= OK Response or ERROR Parameters Example 5.2.5. : the size of the SSL buffer; range of value: [2048, 4096]. AT+CIPSSLSIZE=4096 AT+CIPSEND—Sends Data Set Command: 1. Single connection: (+CIPMUX=0) AT+CIPSEND= 2. Multiple connections: (+CIPMUX=1) Commands AT+CIPSEND=, 3.
5. TCP/IP-Related AT Commands ! 5.2.6. AT+CIPSENDEX—Sends Data 1. Single connection: (+CIPMUX=0) AT+CIPSENDEX= 2. Multiple connections: (+CIPMUX=1) Set Command AT+CIPSENDEX=, 3. Remote IP and ports can be set in UDP transmission: AT+CIPSENDEX=[,][,,] Function: to configure the data length in normal transmission mode. Send data of designated length. Wrap return > after the Set Command. Begin receiving serial data.
5. TCP/IP-Related AT Commands ! , OK > • Wrap return > begins receiving serial data; when the length of data defined by the parameter is met, the data is sent; if the data length over the value of , the data will be discarded, and the command returns busy.
5. TCP/IP-Related AT Commands ! 5.2.9. AT+CIPBUFSTATUS—Checks the Status of the TCP-Send-Buffer 1. Single connection: (+CIPMUX=0) Set Command AT+CIPBUFSTATUS 2.
5. TCP/IP-Related AT Commands ! • The command can only be used to record the status of the last 32 segments at most. • []: ID of the connection (0~4), for multiple connection; Parameters • : the segment ID obtained by calling AT+CIPSENDBUF; • : ‣ FALSE: the segment-sending failed; ‣ TRUE: the segment was sent successfully. Notes This command can only be used when AT+CIPSENDBUF is used. 5.2.11.
5. TCP/IP-Related AT Commands ! • The default mode is single connection mode. • Multiple connections can only be set when transparent transmission is disabled (AT+CIPMODE=0). Notes • This mode can only be changed after all connections are disconnected. • If the TCP server is running, it must be deleted (AT+CIPSERVER=0) before the single connection mode is activated. Example AT+CIPMUX=1 5.2.14.
5. TCP/IP-Related AT Commands ! 5.2.16. AT+SAVETRANSLINK—Saves the Transparent Transmission Link in Flash Save TCP Single Connection in Flash Set Command AT+SAVETRANSLINK=,,[,,] OK Response or ERROR • : ‣ 0: ESP8266 will NOT enter UART-Wi-Fi passthrough mode on power-up. ‣ 1: ESP8266 will enter UART-Wi-Fi passthrough mode on power-up. • : remote IP or domain name. Parameters • : remote port.
5. TCP/IP-Related AT Commands ! • This command will save the UART-Wi-Fi passthrough mode and its link in the flash. ESP8266 will Notes enter the UART-Wi-Fi passthrough mode on any subsequent power cycles. • As long as the remote IP (or domain name) and port are valid, the configuration will be saved in the user parameter area in the flash. Example AT+SAVETRANSLINK=1,"192.168.6.110",1002,"UDP",1005 5.2.17.
5. TCP/IP-Related AT Commands ! 5.2.19. AT+CIUPDATE—Updates the Software Through Wi-Fi Execute Command Response AT+CIUPDATE Function: updates software. +CIPUPDATE: OK • : ‣ ‣ ‣ ‣ Parameters 1: find the server. 2: connect to server. 3: get the software version. 4: start updating. • The speed of the upgrade is susceptible to the connectivity of the network. Notes • ERROR will be returned if the upgrade fails due to unfavourable network conditions. Please wait for some time before retrying.
5. TCP/IP-Related AT Commands ! 5.2.22. AT+CIPSNTPCFG—Sets the Configuration of SNTP Commands Set Command: Query Command: AT+CIPSNTPCFG=[,][,,,] AT+CIPSNTPCFG? Response +CIPSNTPCFG:,,[,,] OK OK • : ‣ 0: SNTP is disabled; ‣ 1: SNTP is enabled.
5. TCP/IP-Related AT Commands ! [+CIPDNS_CUR:] Response [+CIPDNS_CUR:] OK OK • ‣ 0: disable to use user-defined DNS servers; ‣ 1: enable to use user-defined DNS servers. Parameters Example : • : optional parameter indicating the first DNS server; • : optional parameter indicating the second DNS serve. AT+CIPDNS_CUR=1,"208.67.220.220" • For command: AT+CIPDNS_CUR=0 (disable to use user-defined DNS servers), "208.67.222.
6. Appendix ! 6. Appendix ESP8266 AT commands below will save the configuration changes in flash: AT Command Examples Configuration Saved in the User Parameter Area in the Flash AT+UART_DEF AT+CWDHCP_DEF AT+UART_DEF=115200,8,1,0,3 AT+CWDHCP_DEF=1,1 AT+CIPSTAMAC_DEF AT+CIPSTAMAC_DEF="18:fe:35:98:d3:7b" AT+CIPAPMAC_DEF AT+CIPAPMAC_DEF="1a:fe:36:97:d5:7b" AT+CIPSTA_DEF AT+CIPAP_DEF AT+CWDHCPS_DEF AT+SAVETRANSLINK AT+CIPSTA_DEF="192.168.6.100" AT+CIPAP_DEF="192.168.5.1" AT+CWDHCPS_DEF=1,3,"192.168.4.
7. Q&A ! 7. Q&A If you have any questions about the execution of AT commands, please contact us via Espressif Technical Inquiries. Please describe the issues that you might encounter, including any relevant details, as follows: • AT Version information or AT Command: You can use command AT+GMR to acquire information on your current AT command version. • Hardware Module information: for example, ESP-WROOM-02.
Disclaimer and Copyright Notice Information in this document, including URL references, is subject to change without notice. THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. All liability, including liability for infringement of any proprietary rights, relating to the use of information in this document, is disclaimed.