④
. Next, we enter AT command mode for simple configuration. (Since we are sending commands, please turn off the
Real Time Send function of serial port for better debugging; if the serial debugging assistant you use does not have Real
Time Send function, please ignore this article)
a. Start serial debugging, enter the command "++++" in the send text box (please do not add line break), click Send to
start sending commands. b. If the serial port returns the message "Entered AT mode", it indicates that it has entered AT
command mode, otherwise, reset Otherwise, reset and retry the above steps. If not, reset and retry the above steps.
⑤
. Now our module is used as STA mode to connect to other APs, so we need to set the mode to STA mode first.
a. Enter the AT command "AT+ROLE=STA" in the Send text box of the serial debug assistant (please add a line break,
i.e. add the Enter key after entering the command "AT+ROLE=STA") and click Send to send the command.
b. If the message "Set STA mode" is displayed on the serial port, it means that it has been set to STA mode successfully,
otherwise, please operate the above steps again.
⑥
. Next, you need to set the WiFi hotspot parameters (STA parameters) that we want to connect.
a. Enter the AT command "AT+STA=Ebyte,2,E61TTL1W" in the Send text box of the serial debug assistant (please
add a line break, i.e. after entering "AT+STA=Ebyte,2,E61TTL1W" (please add a line break, i.e., after typing
"AT+STA=Ebyte,2,E61TTL1W" and enter), click Send to send the command. (The "Ebyte" in the previous AT
command is the SSID of the WiFi hotspot (i.e. WiFi name), '2' is the encryption method WPA2 (0 if no password), and
"E61TTL1W" is the encryption method WPA2 (0 if no password). "E61TTL1W" is the WiFi password (if there is no
password, the item is empty))
b. If "STA update OK" message is displayed on the serial port, it indicates that the STA parameters have been set
successfully, otherwise, please operate the above steps again.