AT Command Set Comparison¶
This document lists the differences between the AT commands supported by the old NONOS-AT version and those by the new ESP-AT version that you should pay attention to before migrating from the old to new.
- NONOS-AT: Not recommended version for ESP8266 series of chips since its base SDK, ESP8266_NONOS_SDK, is no longer updated.
- ESP-AT: Recommended version. It supports all series of chips and a richer set of commands compared with NONOS-AT, such as Bluetooth commands, Bluetooth Low Energy commands, Ethernet commands, driver commands, and so on. For more details about ESP-AT, please refer to What is ESP-AT and AT Binary Lists.
Note
The table below covers all the commands supported by the NONOS-AT, but not all by ESP-AT. See Section AT Command Set for a full list of commands supported by ESP-AT.
The links in the first column of the table point to ESP-AT commands.
Command | Function | NONOS-AT | ESP-AT |
---|---|---|---|
AT | Test AT startup | ✅ | ✅ |
AT+RST | Restart a module | ✅ | ✅ |
AT+GMR | Check version information | ✅ | ✅ |
AT+GSLP | Enter Deep-sleep mode | ✅ | ✅ |
ATE | AT commands echoing | ✅ | ✅ |
AT+RESTORE | Restore factory default settings | ✅ | ✅ |
AT+UART_CUR | Current UART configuration, not saved in flash | ✅ | ✅ |
AT+UART_DEF | Default UART configuration, saved in flash | ✅ | ✅ |
AT+SLEEP | Set the sleep mode | ✅
1: light sleep
2: modem sleep
|
|
AT+WAKEUPGPIO | Wakeup from light sleep on GPIO interrupt | ✅ | ❌ [3] Similar command: AT+SLEEPWKCFG
|
AT+RFPOWER | Set RF TX Power | ✅
Range: [0,82]
Unit: 0.25 dBm
|
✅ [2] |
AT+RFVDD | Set RF TX power according to VDD33 | ✅ | ❌ |
AT+SYSRAM | Query the remaining space of RAM | ✅ | ✅ Added the parameter of minimum heap size |
AT+SYSADC | Read ADC value | ✅ | ❌ |
AT+SYSIOSETCFG | Set IO working mode | ✅ | ❌ |
AT+SYSIOGETCFG | Query IO working mode | ✅ | ❌ |
AT+SYSGPIODIR | Set GPIO direction | ✅ | ❌ |
AT+SYSGPIOWRITE | Set GPIO output level | ✅ | ❌ |
AT+SYSGPIOREAD | Read GPIO input level | ✅ | ❌ |
AT+SYSMSG | Set system prompt info | ❌ | ✅ |
AT+SYSMSG_CUR | Set system prompt info, not saved in flash | ✅ | |
AT+SYSMSG_DEF | Set default system prompt info, saved in flash | ✅ | |
AT+CWMODE | Set Wi-Fi mode | ❌ | ✅ Added automatic connection after mode switching |
AT+CWMODE_CUR | Set current Wi-Fi mode, not saved in flash | ✅ | |
AT+CWMODE_DEF | Set default Wi-Fi mode, saved in flash | ✅ | |
AT+CWJAP | Connect to an AP | ✅ | ✅ Added more functionality |
AT+CWJAP_CUR | Connect to an AP, not saved in flash | ✅ | |
AT+CWJAP_DEF | Connect to an AP, saved in flash | ✅ | |
AT+CWLAPOPT | Set configuration for AT+CWLAP | ✅ | ✅ Added more functionality |
AT+CWLAP | List available APs | ✅ | ✅ Response is different |
AT+CWQAP | Disconnect from an AP | ✅ | ✅ |
AT+CWSAP | Set softAP parameters | ❌ | ✅ |
AT+CWSAP_CUR | Set softAP parameters, not saved in flash | ✅ | |
AT+CWSAP_DEF | Set softAP parameters, saved in flash | ✅ | |
AT+CWLIF | Query info of the station that connects to a softAP | ✅ | ✅ |
AT+CWDHCP | Set DHCP | ❌ | ✅ |
AT+CWDHCP_CUR | Set DHCP, not saved in flash | ✅ | |
AT+CWDHCP_DEF | Set DHCP, saved in flash | ✅ | |
AT+CWDHCPS | Set the IP addresses allocated by an ESP softAP DHCP server | ❌ | ✅ |
AT+CWDHCPS_CUR | Same as above, but not saved in flash | ✅ | ❌ [3] Similar command: AT+CWDHCPS
|
AT+CWDHCPS_DEF | Same as above, but saved in flash | ✅ | ❌ [3] Similar command: AT+CWDHCPS
|
AT+CWAUTOCONN | Connect to an AP automatically when powered on | ✅ | ✅ |
AT+CIPSTAMAC | Set the MAC address of an ESP station | ❌ | ✅ |
AT+CIPSTAMAC_CUR | Same as above, but not saved in flash | ✅ | ❌ [3] Similar command: AT+CIPSTAMAC
|
AT+CIPSTAMAC_DEF | Same as above, but saved in flash | ✅ | ❌ [3] Similar command: AT+CIPSTAMAC
|
AT+CIPAPMAC | Set the IP address of an ESP softAP | ❌ | ✅ |
AT+CIPAPMAC_CUR | Same as above, but not saved in flash | ✅ | ❌ [3] Similar command: AT+CIPAPMAC
|
AT+CIPAPMAC_DEF | Same as above, but saved in flash | ✅ | ❌ [3] Similar command: AT+CIPAPMAC
|
AT+CIPSTA | Set the IP address of an ESP station | ❌ | ✅ |
AT+CIPSTA_CUR | Same as above, but not saved in flash | ✅ | |
AT+CIPSTA_DEF | Same as above, but saved in flash | ✅ | |
AT+CIPAP | Set the IP address of an ESP softAP | ❌ | ✅ |
AT+CIPAP_CUR | Same as above, but not saved in flash | ✅ | |
AT+CIPAP_DEF | Same as above, but saved in flash | ✅ | |
AT+CWSTARTSMART | Start SmartConfig | ✅ | ✅ |
AT+CWSTOPSMART | Stop SmartConfig | ✅ | ✅ |
AT+CWSTARTDISCOVER | Enable the mode that an ESP device can be found by WeChat | ✅ | ❌ |
AT+CWSTOPDISCOVER | Disable the mode that an ESP device can be found by WeChat | ✅ | ❌ |
AT+WPS | Enable the WPS function | ✅ | ✅ |
AT+MDNS | Configure the mDNS function | ✅ | ✅ |
AT+CWJEAP | Connect to a WPA2 Enterprise AP | ❌ | ESP8266 ❌
ESP32 ✅
ESP32-S2 ❌
|
AT+CWJEAP_CUR | Same as above, but not saved in flash | ✅ | ❌ |
AT+CWJEAP_DEF | Same as above, but saved in flash | ✅ | ❌ |
AT+CWHOSTNAME | Set the host name of an ESP station | ✅ | ✅ |
AT+CWCOUNTRY | Set the Wi-Fi Country Code | ❌ | ✅ |
AT+CWCOUNTRY_CUR | Same as above, but not saved in flash | ✅ | ❌ [3] Similar command: AT+CWCOUNTRY
|
AT+CWCOUNTRY_DEF | Same as above, but saved in flash | ✅ | ❌ [3] Similar command: AT+CWCOUNTRY
|
AT+CIPSTATUS | Obtain the TCP/UDP/SSL connection status and info | ✅ | ✅ |
AT+CIPDOMAIN | Resolve a domain name | ✅ | ✅ |
AT+CIPSTART | Establish a TCP/UDP/SSL connection | ✅ | ✅ |
AT+CIPSSLSIZE | Set SSL buffer size | ✅ | ❌ |
AT+CIPSSLCCONF | Set SSL clients | ✅ | ✅ Parameters are different |
AT+CIPSEND | Send data | ✅ | ✅ |
AT+CIPSENDEX | Send data of specified length, or use \0 to trigger data transmission |
✅ | ✅ |
AT+CIPSENDBUF | Write data into the TCP-Send-Buffer | ✅ | ❌ [3] |
AT+CIPBUFRESET | Reset the segment ID count | ✅ | ❌ [3] |
AT+CIPBUFSTATUS | Query the status of the TCP-Send-Buffer | ✅ | ❌ [3] |
AT+CIPCHECKSEQ | Query if a specific segment was successfully sent | ✅ | ❌ [3] |
AT+CIPCLOSEMODE | Set the close mode of TCP connection | ✅ | ❌ [3] |
AT+CIPCLOSE | Close TCP/UDP/SSL connection | ✅ | ✅ |
AT+CIFSR | Obtain the local IP address | ✅ | ✅ |
AT+CIPMUX | Set multiple connections | ✅ | ✅ |
AT+CIPSERVER | Create a TCP/SSL server | ✅ SSL server not supported | ✅ SSL server supported for ESP32 and ESP32-S2, not for ESP8266 |
AT+CIPSERVERMAXCONN | Set the maximum connections allowed by a server | ✅ | ✅ |
AT+CIPMODE | Set the transmission mode | ✅ | ✅ |
AT+SAVETRANSLINK | Set whether to enter Wi-Fi Passthrough Mode on power-up | ✅ | ✅ |
AT+CIPSTO | Set the local TCP server timeout | ✅ | ✅ |
AT+PING | Ping the remote host | ✅ | ✅ |
AT+CIUPDATE | Upgrade the firmware through Wi-Fi | ✅ | ✅ More parameters supported |
AT+CIPDINFO | Show the remote IP and port with +IPD | ✅ | ✅ |
AT+CIPRECVMODE | Set TCP Receive Mode | ✅ | ✅ |
AT+CIPRECVDATA | Get TCP data in passive receive mode | ✅ | ✅ Response is different |
AT+CIPRECVLEN | Get TCP data length in passive receive mode | ✅ | ✅ |
AT+CIPSNTPCFG | Set the time zone and SNTP server | ✅ | ✅ Added more functionality |
AT+CIPSNTPTIME | Query SNTP time | ✅ | ✅ |
AT+CIPDNS | Set DNS server information | ❌ | ✅ |
AT+CIPDNS_CUR | Same as above, but not saved in flash | ✅ | |
AT+CIPDNS_DEF | Same as above, but saved in flash | ✅ | |
AT+SYSFLASH | Set user partitions in flash | ❌ | ✅ |
Tip: Click the footnote number to jump (back) to where it is marked in the table above.
[1] | AT+SLEEP in ESP-AT:
|
[2] | AT+RFPOWER in ESP-AT:
|
[3] | (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30) This command will not be added to the ESP-AT version. |