Advertisement

ESP8266 AT Command

AT+GMR
//  Check Version

AT+RST
//
  Restart module

AT+CWMODE?
//  Check current mode

AT+CWMODE=<mode>
//  Select WIFI application mode
1–>STA (Station mode)
2–>AP (AP mode)
3–>STA+AP (AP and Station mode)

AT+CWLAP
//  Lists currently available AP

AT+CWJAP?
//  Check current selected AP

AT+CWJAP=”ssid”,”password”
//  Join AP
Command parameters:
<Ssid> string parameter, the access point name
<Pwd> string parameter, passwords up to 64 bytes ASCII

AT+CWQAP
//  Exit connection with the AP

AT+CWSAP?
//  Check current AP parameter
//  + CWSAP: <ssid>, <pwd>, <chl>, <ecn>

AT+CWSAP=”ssid”,”pwd”,chl,ecn
// 
AP mode setting parameters
Command parameters:
<Ssid> string parameter, the access point name
<Pwd> string parameter, passwords up to 64-byte ASCII
<Chl> channel number
<Ecn> Encryption
0 OPEN
1 WEP
2 WPA_PSK
3 WPA2_PSK
4 WPA_WPA2_PSK

AT+CIPSTATUS
//  Get the connection status

AT+CIPSTART
//  Establish a TCP connection or UDP port numbers registered

AT+CIPSEND
//  Send Data

AT+CIPCLOSE
//  Close TCP or UDP

AT+CIFSR
//  Get Local IP Address

AT+CIPMUX
//  Start multiple connections

AT+CIPSERVER
//  Configured as a server