4
Log on to the Server
Instruction
Format
deviceord;login\r\n
Description Inform the WiFi module to log in with the user name and password
Enter the Configuration Mode
Instruction
format
set ap\r\n
Instruction
format
get name ssid:password; serverIP;\r\n
Data Transmission
ESP8266 WiFi module adopts the transparent pass-through approach to transmit
data. However, the transmission speed of WiFi module is limited. So the data
packages could only be transmitted one by one.
Transmit one data package:
Instruction
format
xxxxxxxx\n
Description Xxxxxxxx as the content;
“
\n
”
as the end signal. WiFi module regards xxxxxx as one
data package.
The Network Disconnection Situation
When the network is disconnected (in case of weak WiFi signal or abnormal
logout), WiFi module will send one instruction to the control board every 3 seconds.
The instruction is as follows:
Instruction
format
Description When the network is disconnected, WiFi module will send one instruction to the
control board every 3 seconds. Meanwhile, the control board should restart the
WiFi module.
Send the reconnection command, if necessary.