没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
ESP AT Commands Set
1. AT Commands List
1.1 Basic AT Commands List
1.2 Wi-Fi AT Commands List
1.3 TCP/IP-Related AT Commands List
1.4 [ESP32 Only] BLE AT Commands List
1.5 [ESP32 Only] ETH AT Commands List
1.6 [ESP32 Only] BT AT Commands List
1.7 [ESP32 Only] MQTT AT Commands List
1.8 HTTP AT Command List
2. Basic AT Commands
2.1 AT—Tests AT Startup
2.2 AT+RST—Restarts the Module
2.3 AT+GMR—Checks Version Information
2.4 AT+GSLP—Enters Deep-sleep Mode
2.5 ATE—AT Commands Echoing
2.6 AT+RESTORE—Restores the Factory Default Settings
2.7 AT+UART_CUR—Current UART Configuration, Not Saved in Flash
2.8 AT+UART_DEF—Default UART Configuration, Saved in Flash
2.9 AT+SLEEP—Sets the Sleep Mode
2.10 AT+SYSRAM—Checks the Remaining Space of RAM
2.11 AT+SYSMSG—Control to use new or old information
2.12 [ESP32 Only] AT+SYSFLASH—Set User Partitions in Flash
2.13 [ESP32 Only] AT+FS—Filesystem Operations
2.14 AT+RFPOWER-Set RF TX Power
2.15 AT+SYSROLLBACK-Roll back to the previous firmware
2.16 AT+SYSTIMESTAMP—Set local time stamp.
2.17 AT+SYSLOG : Enable or disable the AT error code prompt.
2.18 AT+SYSLSP—Enters light-sleep mode (Only Support ESP32)
2.19 AT+SYSLSPCFG—Config the light-sleep wakeup source (Only Support ESP32)
3 Wi-Fi AT Commands
3.1 AT+CWMODE—Sets the Wi-Fi Mode (Station/SoftAP/Station+SoftAP)
3.2 AT+CWJAP—Connects to an AP
3.3 AT+CWLAPOPT—Sets the Configuration for the Command AT+CWLAP
3.4 AT+CWLAP—Lists the Available APs
3.5 AT+CWQAP—Disconnects from the AP
3.6 AT+CWSAP—Configuration of the ESP32 SoftAP
3.7 AT+CWLIF—IP of Stations to Which the ESP32 SoftAP is Connected
3.8 AT+CWQIF—Disconnect Station from the ESP SoftAP
3.9 AT+CWDHCP—Enables/Disables DHCP
3.10 AT+CWDHCPS—Sets the IP Address Allocated by ESP32 SoftAP DHCP (The configuration is
saved in Flash.)
3.11 AT+CWAUTOCONN—Auto-Connects to the AP or Not
3.12 AT+CIPSTAMAC—Sets the MAC Address of the ESP32 Station
3.13 AT+CIPAPMAC—Sets the MAC Address of the ESP32 SoftAP
3.14 AT+CIPSTA—Sets the IP Address of the ESP32 Station
3.15 AT+CIPAP—Sets the IP Address of the ESP32 SoftAP
3.16 AT+CWSTARTSMART—Starts SmartConfig
3.17 AT+CWSTOPSMART—Stops SmartConfig
3.18 AT+WPS—Enables the WPS Function
3.19 AT+MDNS—Configurates the MDNS Function
3.20 AT+CWJEAP—Connects to an WPA2 Enterprise AP.
3.21 AT+CWHOSTNAME : Configures the Name of ESP Station
4. TCP/IP-Related AT Commands
4.1 AT+CIPSTATUS—Gets the Connection Status
4.2 AT+CIPDOMAIN—Domain Name Resolution Function
4.3 AT+CIPSTART—Establishes TCP Connection, UDP Transmission or SSL Connection
4.3.1 Establish TCP Connection
4.3.2 Establish UDP Transmission
4.3.3 Establish SSL Connection
4.4 AT+CIPSTARTEX—Establishes TCP connection, UDP transmission or SSL connection with
automatically assigned ID
4.5 AT+CIPSEND—Sends Data
4.6 AT+CIPSENDEX—Sends Data
4.7 AT+CIPCLOSE—Closes TCP/UDP/SSL Connection
4.8 AT+CIFSR—Gets the Local IP Address
4.9 AT+CIPMUX—Enables/Disables Multiple Connections
4.10 AT+CIPSERVER—Deletes/Creates TCP or SSL Server
4.11 AT+CIPSERVERMAXCONN—Set the Maximum Connections Allowed by Server
4.12 AT+CIPMODE—Configures the Transmission Mode
4.13 AT+SAVETRANSLINK—Saves the Transparent Transmission Link in Flash
4.13.1 Save TCP Single Connection in Flash
4.13.2 Save UDP Transmission in Flash
4.14 AT+CIPSTO—Sets the TCP Server Timeout
4.15 AT+CIPSNTPCFG—Sets the Time Zone and the SNTP Server
4.16 AT+CIPSNTPTIME—Queries the SNTP Time
4.17 AT+CIUPDATE—Updates the Software Through Wi-Fi
4.18 AT+CIPDINFO—Shows the Remote IP and Port with "+IPD"
4.19 +IPD—Receives Network Data
4.20 AT+CIPSSLCCONF—Config SSL client
4.21 AT+CIPRECONNINTV—Set Wi-Fi transparent transmitting auto-connect interval
4.22 +IPD—Receives Network Data
4.23 AT+CIPRECVMODE—Set Socket Receive Mode
4.24 AT+CIPRECVDATA—Get Socket Data in Passive Receive Mode
4.25 AT+CIPRECVLEN—Get Socket Data Length in Passive Receive Mode
4.26 AT+PING: Ping Packets
4.27 AT+CIPDNS : Configures Domain Name System.
5. [ESP32 Only] BLE-Related AT Commands
5.1 [ESP32 Only] AT+BLEINIT—BLE Initialization
5.2 [ESP32 Only] AT+BLEADDR—Sets BLE Device's Address
5.3 [ESP32 Only] AT+BLENAME—Sets BLE Device's Name
5.4 [ESP32 Only] AT+BLESCANPARAM—Sets Parameters of BLE Scanning
5.5 [ESP32 Only] AT+BLESCAN—Enables BLE Scanning
5.6 [ESP32 Only] AT+BLESCANRSPDATA—Sets BLE Scan Response
5.7 [ESP32 Only] AT+BLEADVPARAM—Sets Parameters of Advertising
5.8 [ESP32 Only] AT+BLEADVDATA—Sets Advertising Data
5.9 [ESP32 Only] AT+BLEADVSTART—Starts Advertising
5.10 [ESP32 Only] AT+BLEADVSTOP—Stops Advertising
5.11 [ESP32 Only] AT+BLECONN—Establishes BLE connection
5.12 [ESP32 Only] AT+BLEDISCONN—Ends BLE connection
5.13 [ESP32 Only] AT+BLEDATALEN—Sets BLE Data Packet Length
5.14 [ESP32 Only] AT+BLECFGMTU—Sets BLE MTU Length
5.15 [ESP32 Only] AT+BLEGATTSSRVCRE—GATTS Creates Services
5.16 [ESP32 Only] AT+BLEGATTSSRVSTART—GATTS Starts Services
5.17 [ESP32 Only] AT+BLEGATTSSRV—GATTS Discovers Services
5.18 [ESP32 Only] AT+BLEGATTSCHAR—GATTS Discovers Characteristics
5.19 [ESP32 Only] AT+BLEGATTSNTFY—GATTS Notifies of Characteristics
5.20 [ESP32 Only] AT+BLEGATTSIND—GATTS Indicates Characteristics
5.21 [ESP32 Only] AT+BLEGATTSSETATTR—GATTS Sets Characteristic
5.22 [ESP32 Only] AT+BLEGATTCPRIMSRV—GATTC Discovers Primary Services
5.23 [ESP32 Only] AT+BLEGATTCINCLSRV—GATTC Discovers Included Services
5.24 [ESP32 Only] AT+BLEGATTCCHAR—GATTC Discovers Characteristics
5.25 [ESP32 Only] AT+BLEGATTCRD—GATTC Reads a Characteristic
5.26 [ESP32 Only] AT+BLEGATTCWR—GATTC Writes Characteristic
5.27 [ESP32 Only] AT+BLESPPCFG—Sets BLE spp parameters
5.28 [ESP32 Only] AT+BLESPP—Enter BLE spp mode
5.29 [ESP32 Only] AT+BLESECPARAM—Set BLE encryption parameters
5.30 [ESP32 Only] AT+BLEENC—Initiate BLE encryption request
5.31 [ESP32 Only] AT+BLEENCRSP—Grant security request access
5.32 [ESP32 Only] AT+BLEKEYREPLY—Reply the key value to the peer device in the lagecy
connection stage
5.33 [ESP32 Only] AT+BLECONFREPLY—Reply the comfirm value to the peer device in the lagecy
connection stage
5.34 [ESP32 Only] AT+BLEENCDEV—Query BLE encryption device list
5.35 [ESP32 Only] AT+BLEENCCLEAR—Clear BLE encryption device list
5.36 ESP32 Only(#BLE-AT)—Set BLE static pair key
5.37 ESP32 Only(#BLE-AT)—BLE HID device profile initialization
5.38 ESP32 Only(#BLE-AT)—Send BLE HID Keyboard information
5.39 ESP32 Only(#BLE-AT)—Send BLE HID mouse information
5.40 ESP32 Only(#BLE-AT)—Send BLE HID consumer information
6. [ESP32 Only] BLE AT Example
7 [ESP32 Only] ETH AT Commands
7.1 [ESP32 Only] AT+CIPETHMAC—Sets the MAC Address of the ESP32 Ethernet
7.2 [ESP32 Only] AT+CIPETH—Sets the IP Address of the ESP32 Ethernet
8. [ESP32 Only] BT-Related AT Commands
8.1 [ESP32 Only] AT+BTINIT—Classic Bluetooth initialization
8.2 [ESP32 Only] AT+BTNAME—Sets BT device's name
8.3 [ESP32 Only] AT+BTSCANMODE—Sets BT SCAN mode
8.4 [ESP32 Only] AT+BTSTARTDISC—Start BT discovery
8.5 [ESP32 Only] AT+BTSPPINIT—Classic Bluetooth SPP profile initialization
8.6 [ESP32 Only] AT+BTSPPCONN—Establishes SPP connection
8.7 [ESP32 Only] AT+BTSPPDISCONN—Ends SPP connection
8.8 [ESP32 Only] AT+BTSPPSEND—Sends data to remote classic bluetooth spp device
8.9 [ESP32 Only] AT+BTSPPSTART—Start the classic bluetooth SPP profile.
8.10 [ESP32 Only] AT+BTA2DPINIT—Classic Bluetooth A2DP profile initialization
8.11 [ESP32 Only] AT+BTA2DPCONN—Establishes A2DP connection
8.12 [ESP32 Only] AT+BTA2DPDISCONN—Ends A2DP connection
8.13 [ESP32 Only] AT+BTA2DPSRC—Set or query the audio file URL
8.14 [ESP32 Only] AT+BTA2DPCTRL—control the audio play
8.15 [ESP32 Only] AT+BTSECPARAM—Set and query the Classic Bluetooth security parameters
8.16 [ESP32 Only] AT+BTKEYREPLY—Input Simple Pair Key
8.17 [ESP32 Only] AT+BTPINREPLY—Input the Legacy Pair PIN Code
8.18 [ESP32 Only] AT+BTSECCFM—Reply the confirm value to the peer device in the legacy
connection stage
8.19 [ESP32 Only] AT+BTENCDEV—Query BT encryption device list
8.20 [ESP32 Only] AT+BTENCCLEAR—Clear BT encryption device list
9.[ESP32 Only] MQTT AT Commands List
9.1 AT+MQTTUSERCFG - Set MQTT User Config
9.2 AT+MQTTCONNCFG - Set configuration of MQTT Connection
9.3 AT+MQTTCONN - Connect to MQTT Broker
9.4 AT+MQTTPUB - Publish MQTT message in string
9.5 AT+MQTTPUBRAW - Publish MQTT message in binary
9.6 AT+MQTTSUB - Subscribe to MQTT Topic
9.7 AT+MQTTUNSUB - Unsubscribe from MQTT Topic
9.8 AT+MQTTCLEAN - Close the MQTT Connection
9.9 MQTT Error Codes
9.10 MQTT Notes
9.11 Example 1: MQTT over TCP (with a Local MQTT Broker)
9.12 Example 2: MQTT over TLS (with a Local MQTT Broker)
9.13 Example 3: MQTT over WSS
10. HTTP AT Command
10.1 AT+HTTPCLIENT-Send HTTP Client Request
10.2 HTTP Error Code
Appendix. How to generate an ESP8266 AT firmware
ESP AT Commands Set
Here is a list of AT commands. Some of the AT commands can only work on the ESP32, which will
be marked as [ESP32 Only]; others can work on both the ESP8266 and ESP32.
P.S. How to generate an ESP8266 AT firmware.
1. AT Commands List
1.1 Basic AT Commands List
AT : Tests AT startup.
AT+RST : Restarts a module.
AT+GMR : Checks version information.
AT+GSLP : Enters Deep-sleep mode.
ATE : Configures echoing of AT commands.
AT+RESTORE : Restores the factory default settings of the module.
AT+UART_CUR : Current UART configuration.
AT+UART_DEF : Default UART configuration, saved in flash.
AT+SLEEP : Sets the sleep mode.
AT+SYSRAM : Checks the remaining space of RAM.
AT+SYSMSG : Set message format.
AT+RFPOWER : Set RF TX Power.
[ESP32 Only] AT+SYSFLASH : Set User Partitions in Flash.
[ESP32 Only] AT+FS : Filesystem Operations.
AT+SYSROLLBACK : Roll back to the previous firmware.
AT+SYSTIMESTAMP: Set local time stamp.
AT+SYSLOG : Enable or disable the AT error code prompt.
AT+SYSLSPCFG : Config the light-sleep wakeup source.
AT+SYSLSP : Enters light-sleep mode.
1.2 Wi-Fi AT Commands List
AT+CWMODE : Sets the Wi-Fi mode (STA/AP/STA+AP).
AT+CWJAP : Connects to an AP.
AT+CWLAPOPT : Sets the configuration of command AT+CWLAP.
AT+CWLAP : Lists available APs.
AT+CWQAP : Disconnects from the AP.
AT+CWSAP : Sets the configuration of the ESP SoftAP.
AT+CWLIF : Gets the Station IP to which the ESP SoftAP is connected.
AT+CWQIF : Disconnect Station from the ESP SoftAP.
AT+CWDHCP : Enables/disables DHCP.
AT+CWDHCPS : Sets the IP range of the ESP SoftAP DHCP server. Saves the setting in flash.
AT+CWAUTOCONN : Connects to the AP automatically on power-up.
AT+CIPSTAMAC : Sets the MAC address of ESP Station.
AT+CIPAPMAC : Sets the MAC address of ESP SoftAP.
AT+CIPSTA : Sets the IP address of ESP Station.
AT+CIPAP : Sets the IP address of ESP SoftAP.
AT+CWSTARTSMART : Starts SmartConfig.
AT+CWSTOPSMART : Stops SmartConfig.
AT+WPS : Enables the WPS function.
AT+MDNS : Configurates the MDNS function
[ESP32 Only] AT+CWJEAP : Connects to a WPA2 Enterprise AP.
AT+CWHOSTNAME : Configures the Name of ESP Station
1.3 TCP/IP-Related AT Commands List
AT+CIPSTATUS : Gets the connection status.
AT+CIPDOMAIN : Domain Name Resolution Function.
AT+CIPSTART : Establishes TCP connection, UDP transmission or SSL connection.
AT+CIPSTARTEX : Establishes TCP connection, UDP transmission or SSL connection with
automatically assigned ID.
AT+CIPSEND : Sends data.
AT+CIPSENDEX : Sends data when length of data is <length>, or when \0 appears in the data.
AT+CIPCLOSE : Closes TCP/UDP/SSL connection.
AT+CIFSR : Gets the local IP address.
AT+CIPMUX : Configures the multiple connections mode.
AT+CIPSERVER : Deletes/Creates TCP or SSL server.
AT+CIPSERVERMAXCONN : Set the Maximum Connections Allowed by Server.
AT+CIPMODE : Configures the transmission mode.
AT+SAVETRANSLINK : Saves the transparent transmission link in flash.
AT+CIPSTO : Sets timeout when ESP32 runs as a TCP server.
AT+CIPSNTPCFG : Configures the time domain and SNTP server.
AT+CIPSNTPTIME : Queries the SNTP time.
AT+CIUPDATE : Updates the software through Wi-Fi.
AT+CIPDINFO : Shows remote IP and remote port with +IPD.
AT+CIPSSLCCONF : Config SSL client.
AT+CIPRECONNINTV: Set Wi-Fi transparent transmitting auto-connect interval.
AT+CIPRECVMODE: Set Socket Receive Mode.
AT+CIPRECVDATA: Get Socket Data in Passive Receive Mode.
AT+CIPRECVLEN: Get Socket Data Length in Passive Receive Mode.
AT+PING: Ping Packets
AT+CIPDNS : Configures Domain Name System. The configuration will be saved in flash.
1.4 [ESP32 Only] BLE AT Commands List
Download BLE Spec (ESP32 supports Core Version 4.2)
[ESP32 Only] AT+BLEINIT : Bluetooth Low Energy (BLE) initialization
[ESP32 Only] AT+BLEADDR : Sets BLE device's address
[ESP32 Only] AT+BLENAME : Sets BLE device's name
[ESP32 Only] AT+BLESCANPARAM : Sets parameters of BLE scanning
[ESP32 Only] AT+BLESCAN : Enables BLE scanning
[ESP32 Only] AT+BLESCANRSPDATA : Sets BLE scan response
[ESP32 Only] AT+BLEADVPARAM : Sets parameters of BLE advertising
[ESP32 Only] AT+BLEADVDATA : Sets BLE advertising data
[ESP32 Only] AT+BLEADVSTART : Starts BLE advertising
[ESP32 Only] AT+BLEADVSTOP : Stops BLE advertising
[ESP32 Only] AT+BLECONN : Establishes BLE connection
剩余108页未读,继续阅读
资源评论
洞♂次♂哒
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功