100% found this document useful (1 vote)
730 views1 page

Esp 8266 at Commands Set

This document lists AT commands for the ESP8266 WiFi module. Some key commands include AT+CWJAP to join a WiFi access point, AT+CIFSR to get the IP address, AT+CIPSTART to set up TCP or UDP connections, and AT+CIPSEND to send TCP/IP data. The module supports functions like soft AP, station, multiple connections, firmware upgrade, and a watchdog timer.

Uploaded by

thanhvnpt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
730 views1 page

Esp 8266 at Commands Set

This document lists AT commands for the ESP8266 WiFi module. Some key commands include AT+CWJAP to join a WiFi access point, AT+CIFSR to get the IP address, AT+CIPSTART to set up TCP or UDP connections, and AT+CIPSEND to send TCP/IP data. The module supports functions like soft AP, station, multiple connections, firmware upgrade, and a watchdog timer.

Uploaded by

thanhvnpt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ESP8266 AT Command Set

Function
Working
Restart
Firmware version
List Access Points

AT Command
AT
AT+RST
AT+GMR
AT+CWLAP

Join Access Point

AT+CWJAP?
AT+CWJAP="SSID","Password"

Quit Access Point


Get IP Address

AT+CWQAP=?
AT+CWQAP
AT+CIFSR

Set Parameters of
Access Point

AT+ CWSAP?
AT+ CWSAP= <ssid>,<pwd>,<chl>, <ecn>

WiFi Mode

AT+CWMODE?
AT+CWMODE=1
AT+CWMODE=2
AT+CWMODE=3
AT+CIPSTART=?
(CIPMUX=0) AT+CIPSTART =
<type>,<addr>,<port>
(CIPMUX=1) AT+CIPSTART=
<id><type>,<addr>, <port>
AT+ CIPMUX?
AT+ CIPMUX=0
AT+ CIPMUX=1
AT+CWLIF
AT+CIPSTATUS

Set up TCP or UDP


connection

TCP/UDP
Connections
Check join devices' IP
TCP/IP Connection
Status
Send TCP/IP data
Close TCP / UDP
connection
Set as server
Set the server
timeout
Baud Rate*

Check IP address

Response
OK
OK [System Ready, Vendor:www.ai-thinker.com]
AT+GMR 0018000902 OK
AT+CWLAP +CWLAP:(4,"RochefortSurLac",38,"70:62:b8:6f:6d:58",1)
+CWLAP:(4,"LiliPad2.4",-83,"f8:7b:8c:1e:7c:6d",1)
OK
Query AT+CWJAP? +CWJAP:"RochefortSurLac" OK
Query
OK
AT+CIFSR 192.168.0.105
OK
Query
ssid, pwd
chl = channel, ecn = encryption
Query
STA
AP
BOTH
Query
id = 0-4, type = TCP/UDP, addr = IP address, port= port

Query
Single
Multiple
AT+CIPSTATUS? no this fun

(CIPMUX=0) AT+CIPSEND=<length>;
(CIPMUX=1) AT+CIPSEND= <id>,<length>
AT+CIPCLOSE=<id> or AT+CIPCLOSE
AT+ CIPSERVER= <mode>[,<port>]
AT+CIPSTO?
AT+CIPSTO=<time>
AT+CIOBAUD?
Supported: 9600, 19200, 38400, 74880,
115200, 230400, 460800, 921600
AT+CIFSR

Firmware Upgrade
(from Cloud)

AT+CIUPDATE

Received data

+IPD

Watchdog Enable*
Watchdog Disable*

AT+CSYSWDTENABLE
AT+CSYSWDTDISABLE

* New in V0.9.2.2 (from http://www.electrodragon.com/w/Wi07c)

mode 0 to close server mode; mode 1 to open; port = port


Query
<time>0~28800 in seconds
Query AT+CIOBAUD? +CIOBAUD:9600 OK

AT+CIFSR 192.168.0.106
OK
1. +CIPUPDATE:1 found server
2. +CIPUPDATE:2 connect server
3. +CIPUPDATE:3 got edition
4. +CIPUPDATE:4 start update
(CIPMUX=0): + IPD, <len>:
(CIPMUX=1): + IPD, <id>, <len>: <data>
Watchdog, auto restart when program errors occur: enable
Watchdog, auto restart when program errors occur: disable

You might also like