
ESP-01/07/12 Series Modules User's Manual V1.4
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 18 of
23
5.1.4 AT+RESTORE
parameters No
Description Reset the module to factory settings
Example
AT+RESTORE
OK
5.2 Use Examples
This section explains how to configure two modules through the serial port on
the PC side to communicate with each other over TCP/UDP. For more examples,
please refer to: http://wiki.ai-thinker.com/esp8266/examples/at_demo. Test, through
the PC side instead of one end of the module to establish the appropriate connection.
5.2.1 TCP Communication Test
TCP Server is in AP mode and TCP Client is Station mode.
TCP Server Configuration
:
Ai-Thinker Technology Co. Ltd.
ready
AT+CWMODE=2
//configured for AP mode
OK
AT+CWSAP_DEF="TCP_Server","12345678",5,4
//Configure AP
information
OK
AT+CIFSR
//Query the local IP address
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"a2:20:a6:19:c7:0a"
OK
AT+CIPMUX=1
//open multiple links