- TCP communication
- MQTT communication
- Connecting to a microcontroller
- Mobile APP development - communicating with STM32 - MQTT
Basic Info
The ESP8266 itself:
Wiring is as follows:
Connecting to WiFi
| Command | Response | Purpose |
|---|---|---|
AT+UART=115200,8,1,0,0 |
OK | Set the baud rate |
AT |
OK | Test whether AT commands are available |
AT+RST |
OK, then init info | Restart the ESP8266 |
AT+GMR |
Version info | Check the firmware version |
AT+CWMODE=1 |
OK | Set the WiFi mode (STA mode) The ESP8266 can act as a client (STA), a hotspot (AP), or both at once (AP+STA). 0 turns WiFi off, 1 is STA mode, 2 is AP mode, 3 is AP+STA mode |
AT+CWJAP="name","password" |
WIFI CONNECTED WIFI GOT IP OK |
Connect to WiFi |
AT+CWJAP? |
+CWJAP:"your WiFi name","xx:xx:xx:xx:xx:xx",channel,signal_strength | Check the connection status (verify the connection succeeded) |
AT+CIFSR |
+CIFSR:STAIP,"192.168.1.100" +CIFSR:STAMAC,"a4:e5:7c:26:1a:3f" OK |
Get the assigned IP |
AT+CWQAP |
OK | Disconnect from WiFi |
1/21/26About 1 min