AirM2M_ESP8266 WiFi module user manual V3.2
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 39
type
Set command
AT+CWSAP=<ssid>,<pwd>,<chl>,
<ecn>
OK
set parameters successfully
Read
command
AT+CWSAP?
OK
check current AP parameter
parameter definition
:
parameter
definition
value
value instruction
<ecn>
encryption way
0
OPEN
1
WEP
2
WPA_PSK
3
WPA2_PSK
4
WPA_WPA2_PSK
<ssid>
access point name
character string parameter
<pwd>
password
character string, the longest is 64 byte, ASCII coding
<chl>
channel number
5.2.6. Inquire MAC address: AT+AMMAC
Syntax
:
command
type
grammar
Response
Decription
Execution
command
AT+AMMAC
STATION_MAC: xx:xx:xx:xx:xx:xx
OK
STA mode
AP_MAC: xx:xx:xx:xx:xx:xx
OK
AP mode
STATION_MAC: xx:xx:xx:xx:xx:xx
AP_MAC: xx:xx:xx:xx:xx:xx
OK
STA+AP mode
Examples
:
cmd
(
→
)
/Rep
(
←
)
example
Decription and instruction
→
AT+CWMODE?
Inquire WIFI level working mode
←
+CWMODE::3
OK
3
:
AP+STA mode
→
AT+AMMAC
Inquire AC address
←
STATION_MAC: 18:fe:34:9e:ab:e4
AP_MAC: 1a:fe:34:9e:ab:e4