
!
4. Wi-Fi AT Commands
4.2.34. AT+CWSTARTDISCOVER—Enables the Mode that ESP8266 can be Found by WeChat
4.2.35. AT+CWSTOPDISCOVER—Disables the Mode that ESP8266 can be Found by WeChat
4.2.36. AT+WPS—Enables the WPS Function
Set Command
AT+CWSTARTDISCOVER=<WeChat number>,<dev_type>,<time>
Response
OK
Parameters
•
<WeChat number>
: WeChat official account, which is to be obtained from WeChat.
•
<dev_type>
: the device type, which is to be obtained from WeChat.
•
<time>
: the interval of time for ESP8266 to send packets; range: 0 ~ 24x3600; unit:
second.
‣
0: ESP8266 will not take the initiative to send packets; it only makes response to
queries from WeChat.
‣
Otherwise: the time interval for ESP8266 to send packets regularly in order to be
detected by WeChat on the same LAN.
Note
•
For details on detection function of WeChat, please refer to
http://iot.weixin.qq.com
.
•
ESP8266 Station should connect to an AP and obtain an IP address first before this
command is used.
Example
AT+CWSTARTDISCOVER="gh_9e2cff3dfa51","122475",10
Execute Command
AT+CWSTOPDISCOVER
Response
OK
or
ERROR
Example
AT+CWSTOPDISCOVER
Set Command
AT+WPS=<enable>
Response
OK
or
ERROR
Parameters
<enable>
:
‣
1
: enables WPS/Wi-Fi Protected Setup
‣
0
: disables WPS
Notes
•
WPS must be used when the ESP8266 Station is enabled.
•
WPS does not support WEP/Wired-Equivalent Privacy encryption.
Example
AT+CWMODE=1
AT+WPS=1
Espressif
!
/52
39
2017.05